Registry / serialization / adrg-frontmatter

adrg-frontmatter

JSON →
library0.2.0gogounverified

Package frontmatter implements detection and decoding for various content front matter formats.

go get github.com/adrg/frontmatter
INSTALL
IMPORT
SIG · ADRG-FRONTMATTER
A
adrg-frontmatter
serializationgov0.2.0
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.

frontmatter
github.com/adrg/frontmatter

Parse YAML frontmatter

package main import ( "fmt" "github.com/adrg/frontmatter" "strings" ) func main() { content := "---\ntitle: Test\n---\nBody" var meta struct{ Title string } rest, _ := frontmatter.Parse(strings.NewReader(content), &meta) fmt.Println(meta.Title, rest) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
53 hits · last 30 days
node
48
OpenAI (training)
1
Resources
adrg-frontmatter — go get adrg-frontmatter · libregistry