Registry / serialization / invopop-yaml

invopop-yaml

JSON →
library0.3.1gogounverified

YAML wrapper that converts YAML to JSON and uses JSON struct tags and custom JSON methods for marshaling/unmarshaling.

go get github.com/invopop/yaml
INSTALL
IMPORT
SIG · INVOPOP-YAML
I
invopop-yaml
serializationgov0.3.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.

yaml
github.com/invopop/yaml

Unmarshal YAML into a struct using JSON tags

package main import ( "fmt" "github.com/invopop/yaml" ) type Config struct { Name string `json:"name" yaml:"name"` } func main() { data := []byte("name: example") var cfg Config yaml.Unmarshal(data, &cfg) fmt.Println(cfg.Name) }
Debug
Known issues
gotchaUses JSON tags for YAML fields; YAML-specific tags are ignored
fix
Ensure structs have JSON tags defined for YAML fields
affects: >=0.1.0
Upgrade
Version history
0.3.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
invopop-yaml — go get invopop-yaml · libregistry