{"id":49860,"library":"yaml-v2","title":"YAML v2","description":"Package yaml implements YAML support for the Go language.","status":"active","version":"2.4.0","language":"go","source_language":null,"source_url":"https://github.com/go-yaml/yaml","tags":["yaml","serialization","configuration"],"install":[{"cmd":"go get gopkg.in/yaml.v2","lang":"bash","label":"Install gopkg.in/yaml.v2"}],"dependencies":[],"imports":[{"symbol":"yaml","correct":"gopkg.in/yaml.v2"}],"quickstart":{"code":"package main\n\nimport (\n    \"fmt\"\n    \"gopkg.in/yaml.v2\"\n)\n\nfunc main() {\n    data := map[string]string{\"key\": \"value\"}\n    out, _ := yaml.Marshal(data)\n    fmt.Println(string(out))\n}","lang":"go","description":"Marshal a map to YAML"},"warnings":[{"fix":"Consider migrating to gopkg.in/yaml.v3 for new projects","message":"v2 is legacy; v3 has breaking changes","severity":"gotcha","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'configur':14 'go':10 'implement':5 'languag':11 'packag':3 'serial':13 'support':7 'v2':2 'yaml':1,4,6,12","created_at":"2026-06-14T18:18:02.551030+00:00","updated_at":"2026-06-14T18:18:02.551030+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/go-yaml/yaml","github":"https://github.com/go-yaml/yaml","docs":"https://pkg.go.dev/gopkg.in/yaml.v2#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization","config"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-14","next_check":"2026-12-11","install_tag":null}}