Registry / config / creachadair-tomledit

creachadair-tomledit

JSON →
library0.0.29gogounverified

A Go package for parsing, editing, and formatting TOML documents while preserving comments and structure.

go get github.com/creachadair/tomledit
INSTALL
IMPORT
SIG · CREACHADAIR-TOMLED
C
creachadair-tomledit
configgov0.0.29
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tomledit
github.com/creachadair/tomledit

Parses a TOML document and prints its first item.

package main import ( "fmt" "github.com/creachadair/tomledit" ) func main() { doc, err := tomledit.Parse([]byte("key = \"value\"\n")) if err != nil { fmt.Println(err) return } fmt.Println(doc.Sections[0].Items[0]) }
Debug
Known issues
gotchaParser does not validate TOML semantics (e.g., duplicate keys).
fix
Validate the document separately if needed.
affects: all
Upgrade
Version history
0.0.29latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
48 hits · last 30 days
node
42
Resources
creachadair-tomledit — go get creachadair-tomledit · libregistry