Registry / serialization / pelletier-go-toml-v2

pelletier-go-toml-v2

JSON →
library2.3.1gogounverified

Package toml is a library to read and write TOML documents.

go get github.com/pelletier/go-toml/v2
INSTALL
IMPORT
SIG · PELLETIER-GO-TOML-
P
pelletier-go-toml-v2
serializationgov2.3.1
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.

toml
✓ github.com/pelletier/go-toml/v2

Unmarshal a TOML string into a Go map.

package main import ( "fmt" "github.com/pelletier/go-toml/v2" ) func main() { var data map[string]interface{} err := toml.Unmarshal([]byte("key = \"value\""), &data) if err != nil { panic(err) } fmt.Println(data) }
Debug
Known issues
breakingVersion 2 has breaking API changes from v1, including different import path and behavior.
fix
Use `github.com/pelletier/go-toml/v2` instead of `github.com/pelletier/go-toml`.
affects: >=2.0.0
Upgrade
Version history
2.3.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
24
Resources
pelletier-go-toml-v2 — go get pelletier-go-toml-v2 · libregistry