formatter

package
v0.0.0-...-5c49fd7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL