Registry / config / naoina-toml

naoina-toml

JSON →
library0.1.1gogounverified

Package toml encodes and decodes the TOML configuration format using reflection, compatible with TOML v0.4.0.

go get github.com/naoina/toml
INSTALL
IMPORT
SIG · NAOINA-TOML
N
naoina-toml
configgov0.1.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/naoina/toml

Unmarshal a TOML string into a struct

package main import ( "fmt" "github.com/naoina/toml" ) func main() { var cfg struct { Title string `toml:"title"` } err := toml.Unmarshal([]byte("title = \"Hello\""), &cfg) if err != nil { fmt.Println(err) return } fmt.Println(cfg.Title) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
26
OpenAI (training)
1
Resources
naoina-toml — go get naoina-toml · libregistry