Registry / utility / facebookgo-structtag

facebookgo-structtag

JSON →
library0.0.0-20150214074306-217e25fb9691gogounverified

Package structtag provides parsing of the defacto struct tag style.

go get github.com/facebookgo/structtag
INSTALL
IMPORT
SIG · FACEBOOKGO-STRUCTT
F
facebookgo-structtag
utilitygov0.0.0-20150214074306-217e25fb9691
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.

structtag
github.com/facebookgo/structtag

Parse a struct tag string

package main import ( "fmt" "github.com/facebookgo/structtag" ) func main() { tag := `json:"name,omitempty"` parsed, _ := structtag.Parse(tag) fmt.Println(parsed.Get("json")) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20150214074306-217e25fb9691latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
facebookgo-structtag — go get facebookgo-structtag · libregistry