3 Commits

Author SHA1 Message Date
amery a1b118adbe Unmarshal: WIP
Signed-off-by: Alejandro Mery <amery@jpi.io>
2023-08-31 17:18:23 +00:00
amery a95fed36dc Decoder: WIP
Signed-off-by: Alejandro Mery <amery@jpi.io>
2023-08-31 17:18:23 +00:00
amery 70f3968fb3 basic: WIP
Signed-off-by: Alejandro Mery <amery@jpi.io>
2023-08-31 17:18:23 +00:00
+9
View File
@@ -16,6 +16,7 @@ of stricter parsers of similar form.
[godoc-lexer]: https://pkg.go.dev/asciigoat.org/core/lexer
[godoc-parser-parser]: https://pkg.go.dev/asciigoat.org/ini/parser#Parser
[godoc-basic-parser]: https://pkg.go.dev/asciigoat.org/ini/basic#Decode
[wikipedia-dosini]: https://en.wikipedia.org/wiki/INI_file
@@ -25,6 +26,14 @@ of stricter parsers of similar form.
[`asciigoat`'s lexer][godoc-lexer] to process an `INI`-style document
emiting tokens and errors via callbacks.
## Basic Parser
[`basic.Decode()`][godoc-basic-parser] 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
* [gcfg](https://pkg.go.dev/gopkg.in/gcfg.v1)