# pelletier/go-toml

Go library for the TOML file format

Repository: https://github.com/pelletier/go-toml
Canonical: https://ross.abutalabs.com/products/go-toml
Homepage: https://github.com/pelletier/go-toml
Language: Go
License: NOASSERTION
License Family: other
Topics: go, toml, toml-parsing, hacktoberfest, golang
Last push: 2026-08-03T12:43:48+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 95, release rhythm 91, longevity 100
- inputs: {"age_days": 4938, "days_push": 30, "days_rel": 60, "gap_med": 24.0, "n_releases_24m": 7}
- 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 1982, forks 251 (observed 2026-08-28T04:06:01.836015+00:00)

## What it is
go-toml v2 is a Go library for parsing and encoding the TOML file format, supporting TOML v1.1.0. It is designed to behave like the standard library's encoding/, with strict mode, contextualized decode errors, and local date/time types.

## Use cases
- parse TOML config files in Go
- marshal Go structs to TOML
- unmarshal TOML documents into structs
- validate TOML files against a struct with strict mode
- generate commented TOML configuration files
- handle TOML local date and time values

## When to choose
- you need TOML support in a Go project
- you want encoding/-like ergonomics for TOML
- you need helpful, contextualized decode errors
- performance matters for TOML parsing

## When to avoid
- you work in a language other than Go
- you need a general-purpose config format like YAML or JSON instead of TOML

## Facets
- artifact type: library
- maturity: stable
- function: serialization, parser, configuration-management
- domain: developer-tools, files, backend
- platform: go, cross-platform
- tags: toml, config-files, encoding, decoding

## Member repositories
- pelletier/go-toml (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:01.836015+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-30T03:03:56.215538+00:00, confidence not recorded.
  - readme: https://github.com/pelletier/go-toml (fetched 2026-08-28T04:06:01.836015+00:00, sha d468ab46e207)
  - homepage: https://github.com/pelletier/go-toml (fetched 2026-08-29T10:43:14.386698+00:00, sha a69c03751b1e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
