# go-yaml (yaml/go-yaml)

> YAML for Go, maintained by the YAML organization

Source: https://talira.ai/catalog/go-yaml-yaml-go-yaml-x2bj0gc4
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [developer tools / parsing / yaml](https://talira.ai/categories/developer-tools/parsing/yaml), [languages / go](https://talira.ai/categories/languages/go)
- Licence: Apache-2.0 AND MIT[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [The YAML Project](https://talira.ai/orgs/yaml-project.md)

go-yaml is the YAML library for Go now maintained by the YAML organization, continuing the archived original go-yaml repository that began at Canonical as part of Juju. It reads YAML into Go structs, maps and slices, works with nodes and comments, and writes YAML with explicit control over formatting. Version 4 adds Load and Dump APIs with options, plugins and version presets that restore v3 defaults, while v2 and v3 stay available at go.yaml.in/yaml/v2 and v3 with frozen APIs and security fixes only. The same pipeline is available as the go-yaml command.

## Links

- GitHub: https://github.com/yaml/go-yaml
- Docs: https://github.com/yaml/go-yaml/tree/main/docs

## Problems it solves

- read a YAML config file into a Go struct
- parse and write YAML in Go while keeping comments
- find a maintained replacement for the archived gopkg.in/yaml.v3

## Features

- decode YAML into Go structs, maps, slices and custom types
- work with YAML nodes and comments
- Load and Dump APIs with options and plugins (v4)
- version presets that restore v3 defaults
- go-yaml command-line tool using the same pipeline

## Trust

Overall: 0.63 out of 1.
Signals: maintenance 1.00, adoption 0.55, momentum 0.45, community 0.78, backing 0.30, extensibility 0.00.

- last commit 4 days ago
- 161 commits in the last 90 days
- latest release v4.0.0 25 days ago
- 574 GitHub stars
- 89 contributors
- backed by The YAML Project

## Related

- Successor of [go-yaml](https://talira.ai/catalog/go-yaml-xz5s6v1e.md)

## Alternatives

- [ghodss/yaml](https://talira.ai/catalog/ghodss-yaml-kwfw6bdt.md): Go YAML marshaling that reuses JSON struct tags, by converting YAML to JSON (unmaintained)

## Sources

[^1]: https://github.com/yaml/go-yaml/blob/main/README.md (checked 28 Nov 2026)
[^2]: https://github.com/yaml/go-yaml/blob/main/LICENSE (checked 28 Nov 2026)
