{"repo":"pelletier/go-toml","free":true,"listed":false,"github":"https://github.com/pelletier/go-toml","clone":"git clone https://github.com/pelletier/go-toml.git","description":"Go library for the TOML file format","language":"Go","stars":1977,"topics":["go","toml","toml-parsing","hacktoberfest","golang"],"license":null,"category":"dev-tools","readme_excerpt":"go-toml v2 Go library for the TOML format. This library supports TOML v1.1.0. 🐞 Bug Reports 💬 Anything else Documentation Full API, examples, and implementation notes are available in the Go documentation. Import Features Stdlib behavior As much as possible, this library is designed to behave similarly as the standard library's encoding/json . When encoding structs, fields tagged with omitempty are omitted if they are empty. For time.Time , the zero value is considered empty, so timestamps such as created at or updated at are not written unless you remove omitempty from the struct tag or use a pointer type ( time.Time ). Performance While go-toml favors usability, it is written with performance in mind. Most operations should not be shockingly slow. See benchmarks. Strict mode Decoder can be set to \"strict mode\", which makes it error when some parts of the TOML document was not present in the target structure. This is a great way to check for typos. [See example in the documentation][strict]. [strict]: https://pkg.go.dev/github.com/pelletier/go-toml/v2#example-Decoder.DisallowUnknownFields Contextualized errors When most decoding errors occur, go-toml returns [ DecodeError ][decode-err], which contains a human readable contextualized version of the error. For example: [decode-err]: https://pkg.go.dev/github.com/pelletier/go-toml/v2#DecodeError Local date and time support TOML supports native [local date/times][ldt]. It allows to represent a given date, time, or date-time wi","default_branch":null,"files":null,"tree":[],"storefront":"/r/pelletier","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pelletier/go-toml/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}