ini

A standard golang ini parser

MIT License

Stars
17

Ini

A simple standard ini parser with golang.

Install


$ go get github.com/nonzzz/ini

Features

  • Read by file.
  • Read by string.
  • Marshal to Json or Map.
  • Friendly Selector

Usage


i := ini.New()

//  Load File
i.LoadFile("your ini file")

// Parse

txt :=`

[s]

a = 3

[s1]

b = 4

`

ini.Parse(txt)

Document

Acknowledgements

Thanks to JetBrains for allocating free open-source licences for IDEs.

Author

Kanno

LICENSE

MIT