{"id":49937,"library":"pelletier-go-toml-v2","title":"Go TOML v2","description":"Package toml is a library to read and write TOML documents.","status":"active","version":"2.3.1","language":"go","source_language":null,"source_url":"https://github.com/pelletier/go-toml","tags":["toml","serialization","config"],"install":[{"cmd":"go get github.com/pelletier/go-toml/v2","lang":"bash","label":"Install github.com/pelletier/go-toml/v2"}],"dependencies":[],"imports":[{"symbol":"toml","correct":"github.com/pelletier/go-toml/v2"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/pelletier/go-toml/v2\"\n)\n\nfunc main() {\n\tvar data map[string]interface{}\n\terr := toml.Unmarshal([]byte(\"key = \\\"value\\\"\"), &data)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Println(data)\n}","lang":"go","description":"Unmarshal a TOML string into a Go map."},"warnings":[{"fix":"Use `github.com/pelletier/go-toml/v2` instead of `github.com/pelletier/go-toml`.","message":"Version 2 has breaking API changes from v1, including different import path and behavior.","severity":"breaking","affected_versions":">=2.0.0"}],"env_vars":null,"search_vec":"'config':17 'document':14 'go':1 'librari':8 'packag':4 'read':10 'serial':16 'toml':2,5,13,15 'v2':3 'write':12","created_at":"2026-06-15T04:33:39.160050+00:00","updated_at":"2026-06-15T04:33:39.160050+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/pelletier/go-toml","github":"https://github.com/pelletier/go-toml","docs":"https://pkg.go.dev/github.com/pelletier/go-toml/v2#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization","config"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}