Registry / serialization / go-yaml-yaml

go-yaml-yaml

JSON →
library2.1.0+incompatiblegogounverified

Package yaml implements YAML support for the Go language.

go get github.com/go-yaml/yaml
INSTALL
IMPORT
SIG · GO-YAML-YAML
G
go-yaml-yaml
serializationgov2.1.0+incompatible
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.v2

Marshal a map to YAML.

package main import ( "fmt" "gopkg.in/yaml.v2" ) func main() { data := map[string]string{"key": "value"} out, _ := yaml.Marshal(data) fmt.Println(string(out)) }
Debug
Known issues
gotchaVersion 2.1.0+incompatible is not the latest; consider using gopkg.in/yaml.v3 for newer features.
fix
Update import to gopkg.in/yaml.v3
affects: >=2.0.0
Upgrade
Version history
2.1.0+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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