frontmatter

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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