Documentation ¶ Index ¶ Variables func Format[T any](metadata T, body string) (string, error) func Parse[T any](content string, metadata *T) (string, error) func RewriteStringField(content, key, value string) (string, error) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrHeaderNotFound = errors.New("front matter header not found") ErrFooterNotFound = errors.New("front matter closing delimiter not found") ErrMetadataRequired = errors.New("front matter metadata target is nil") ) Functions ¶ func Format ¶ func Format[T any](metadata T, body string) (string, error) func Parse ¶ func Parse[T any](content string, metadata *T) (string, error) func RewriteStringField ¶ func RewriteStringField(content, key, value string) (string, error) Types ¶ This section is empty. Source Files ¶ View all Source files frontmatter.go Click to show internal directories. Click to hide internal directories.