Documentation ¶ Index ¶ Variables type Formatter func New() Formatter Constants ¶ This section is empty. Variables ¶ View Source var ( // ErrorUnknownFormat is the error returned when trying to load a post with unknown format ErrorUnknownFormat = errors.New("unknown post format") ) Functions ¶ This section is empty. Types ¶ type Formatter ¶ type Formatter func(raw, format string) (string, error) Formatter defines type for formatter func New ¶ func New() Formatter New instantiates new Formatter Source Files ¶ View all Source files formatter.go Click to show internal directories. Click to hide internal directories.