amery a95fed36dc Decoder: WIP
Signed-off-by: Alejandro Mery <amery@jpi.io>
2023-08-31 17:18:23 +00:00
2023-08-31 17:18:23 +00:00
2023-08-30 23:01:22 +00:00
2023-08-28 19:40:42 +00:00
2023-08-28 19:40:42 +00:00
2023-08-31 17:18:23 +00:00
2023-08-28 19:40:42 +00:00
2023-08-28 19:40:42 +00:00
2023-08-31 17:18:23 +00:00

asciigoat's INI parser

Go Reference Go Report Card

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

S
Description
asciigoat's INI parser
https://asciigoat.org/ini
Readme 1.3 MiB
Languages
Go 94.6%
Makefile 5.4%