Registry / serialization / yaml-v3

yaml-v3

JSON →
library3.0.1gogounverified

Package yaml implements YAML support for the Go language.

go get gopkg.in/yaml.v3
INSTALL
IMPORT
SIG · YAML-V3
Y
yaml-v3
serializationgov3.0.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
gopkg.in/yaml.v3

Marshal a map to YAML

package main import ( "fmt" "gopkg.in/yaml.v3" ) func main() { data := map[string]string{"key": "value"} out, _ := yaml.Marshal(data) fmt.Println(string(out)) }
Debug
Known issues
breakingBreaking changes from v2: different node API and unmarshaling behavior
fix
Use v3 for new projects; migrate carefully from v2
affects: >=3.0.0
Upgrade
Version history
3.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
54 hits · last 30 days
node
48
Resources
yaml-v3 — go get yaml-v3 · libregistry