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/buildkite/yaml
Unmarshal YAML data into a map.
package main
import (
"fmt"
"github.com/buildkite/yaml"
)
func main() {
data := []byte("name: John\nage: 30")
var m map[string]interface{}
err := yaml.Unmarshal(data, &m)
if err != nil {
panic(err)
}
fmt.Println(m)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2.1.0+incompatiblelatest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.