ghodss/yaml
A better way to marshal and unmarshal YAML in Golang observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4294
- days_rel: n/a
- days_push: 1195
- n_releases_24m: 0
Adoption not part of the score
1063 stars · 236 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Go library that wraps go-yaml to marshal and unmarshal YAML using JSON struct tags and JSON marshal/unmarshal semantics. It converts YAML to JSON first, so structs can rely on standard tags and custom JSON methods.
Use cases
- marshal Go structs to YAML using tags
- unmarshal YAML config files into structs
- convert YAML documents to JSON and back
- reuse MarshalJSON and UnmarshalJSON methods with YAML
- handle Kubernetes-style YAML manifests with JSON tooling
When to choose
- your structs already use struct tags
- you want consistent behavior between JSON and YAML
- you need YAMLToJSON or JSONToYAML conversion utilities
When to avoid
- you need YAML-specific tags or features unsupported by JSON
- you need !!binary tagged data handling
- you want a maintained fork with newer go-yaml features
Facets
library · maturity maintenance
serialization yaml developer-tools backend files go cross-platform yaml-to- struct-tags go-yaml-wrapper
1 source
- readme: https://github.com/ghodss/yaml · fetched 2026-08-28 · 3f6f84908158
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| ghodss/yaml | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem