70f3968fb342b37cea93f185917578fd2e548a26
asciigoat's INI parser
asciigoat.org/ini is a simple Go library that very loosly parses
INI-style documents allowing the implementation
of stricter parsers of similar form.
asciigoat is MIT licensed.
Parser
parser.Parser uses
asciigoat's lexer to process an INI-style document
emiting tokens and errors via callbacks.
Basic Parser
basic.Decode() provies a one-shot decoder
that returns a structured document for you to post-process.
To allow for correct handling of repetition of section and field names downstream, it uses arrays instead of maps, and makes almost no judgment about what section or field names are acceptable.
Other Implementations
See also
- asciigoat.org/core
- oss.jpi.io
- INI file (wikipedia)
- TOML
Description
Languages
Go
94.6%
Makefile
5.4%