Registry / utility / alecthomas-participle

alecthomas-participle

JSON →
library0.7.1gogounverified

Package participle constructs parsers from definitions in struct tags and parses directly into those structs.

go get github.com/alecthomas/participle
INSTALL
IMPORT
SIG · ALECTHOMAS-PARTICI
A
alecthomas-participle
utilitygov0.7.1
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.

participle
github.com/alecthomas/participle

Define a grammar using struct tags and parse input into it.

package main import ( "fmt" "github.com/alecthomas/participle" ) type Grammar struct { Name string `@Ident` } func main() { parser, _ := participle.Build(&Grammar{}) val := &Grammar{} parser.ParseString("", "hello", val) fmt.Println(val.Name) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
24
OpenAI (training)
1
Resources
alecthomas-participle — go get alecthomas-participle · libregistry