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/BurntSushi/toml
Decodes a TOML string into a struct.
package main
import (
"fmt"
"github.com/BurntSushi/toml"
)
func main() {
var config struct {
Title string
}
_, err := toml.Decode("title = \"Example\"", &config)
if err != nil {
panic(err)
}
fmt.Println(config.Title)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.6.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.