Registry / serialization / yaml-v1

yaml-v1

JSON →
librarygogounverified

Package yaml implements YAML support for the Go language, providing encoding and decoding of YAML documents.

go get gopkg.in/yaml.v1
INSTALL
IMPORT
SIG · YAML-V1
Y
yaml-v1
serializationgo
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.v1

Marshal a map to YAML.

package main import ( "fmt" "gopkg.in/yaml.v1" ) func main() { data := map[string]string{"key": "value"} out, _ := yaml.Marshal(data) fmt.Println(string(out)) }
Debug
Known issues
breakingVersion v1 is outdated; consider using gopkg.in/yaml.v3 for latest features and fixes.
fix
Update import path to gopkg.in/yaml.v3 and adjust code for API changes.
affects: >=0.0.0
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Dependencies

No dependency data recorded yet.

Agent activity
45 hits · last 30 days
node
42
Amazon
1
Resources
yaml-v1 — go get yaml-v1 · libregistry