# ghodss/yaml

A better way to marshal and unmarshal YAML in Golang

Repository: https://github.com/ghodss/yaml
Canonical: https://ross.abutalabs.com/products/ghodss-yaml
Language: Go
License: NOASSERTION
License Family: other
Last push: 2023-05-26T03:22:30+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4294, "days_push": 1195, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1063, forks 236 (observed 2026-08-28T04:03:26.255990+00:00)

## What it is
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
- artifact type: library
- maturity: maintenance
- function: serialization, yaml
- domain: developer-tools, backend, files
- platform: go, cross-platform
- tags: yaml-to-, struct-tags, go-yaml-wrapper

## Member repositories
- ghodss/yaml (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:26.255990+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:56:39.184016+00:00, confidence not recorded.
  - readme: https://github.com/ghodss/yaml (fetched 2026-08-28T04:03:26.255990+00:00, sha 3f6f84908158)
- Data as of 2026-08-30T08:39:29.467469+00:00.
