sriracha/extension_post.go

12 lines
340 B
Go

package sriracha
// ExtensionPost defines the interface for extensions that handle creating a post.
type ExtensionPost interface {
Extension
// Post is called when a new post is created. Extensions may modify the
// post and apply formatting or other operations on it. All text is
// initially HTML-escaped.
Post(post *Post) error
}