package
0.8.3
Repository: https://github.com/lalamove/konfig.git
Documentation: pkg.go.dev

# README

TOML Parser

TOML parser parses a TOML file to a map[string]interface{} and then traverses the map and adds values into the config store flattening the TOML using dot notation for keys.

Ex:

foo = bar

[nested] 
firstName = "john"
lastName = "doe"
list = [1, 2]

Will add the following key/value to the config

"foo" => "bar"
"nested.firstName" => "john"
"nested.lastName" => "doe"
"nested.list" => []int{1,2}

Usage

err := kptoml.Parser.Parse(strings.NewReader(`foo: "bar"`), konfig.Values{})

# Variables

Parser parses the given json io.Reader and adds values in dot.path notation into the konfig.Store.