/tparse

tparse is a golang library for parsing simple toml like syntax

Primary LanguageGoGNU General Public License v3.0GPL-3.0

tparse

tparse is a golang library for parsing simple toml like syntax

For Documentation visit : Link

Sample Usage

tomlStr := `[Linus Torvalds]
Found = Linux, git

[Guido Van Rossum]
Found = Python, Gerrit

[Larry Wall]
Found = Perl`
var dict *tparse.Dict = tparse.NewDict()
dict.Parse(tomlStr)
e, err := dict.Find("Linus Torvalds")
if err != nil {
  fmt.Println(err)
  return
}
found, err := e.Find("Found")
if err != nil {
  fmt.Println(err)
  return
}
fmt.Println(found)

// Output:
// Linux, git