Registry / serialization / gernest-front

gernest-front

JSON →
library0.0.0-20210301115436-8a0b0a782d0agogounverified

A frontmatter extraction library for Go, parsing YAML, TOML, or JSON front matter from files.

go get github.com/gernest/front
INSTALL
IMPORT
SIG · GERNEST-FRONT
G
gernest-front
serializationgov0.0.0-20210301115436-8a0b0a782d0a
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

front
github.com/gernest/front

Parses front matter from a string.

package main import ( "fmt" "strings" "github.com/gernest/front" ) func main() { matter := `--- title: Test --- Content here` f := front.New() fm, body, err := f.Parse(strings.NewReader(matter)) if err != nil { panic(err) } fmt.Printf("Front matter: %v\nBody: %s\n", fm, body) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20210301115436-8a0b0a782d0alatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
gernest-front — go get gernest-front · libregistry