Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 565 Bytes

File metadata and controls

32 lines (27 loc) · 565 Bytes

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