feat: Add TOML marshalling API

This commit is contained in:
2026-06-26 20:12:15 +02:00
parent 591d1f01d1
commit eac3a60e9e
8 changed files with 1519 additions and 6 deletions
+4 -2
View File
@@ -52,12 +52,14 @@ Run this before and after any parser change; it must stay at zero failures.
```
interpres/
├── interpres.go # public API: Parse, Unmarshal, Decoder, SyntaxError
├── interpres.go # public API: Parse, Unmarshal, Marshal, Decoder, Encoder, SyntaxError
├── parser.go # recursive-descent parser → map[string]any
├── number.go # strict numeric token parsing
├── datetime.go # date-time types and parsing
├── decode.go # reflection mapping of the tree onto Go values
├── interpres_test.go # test suite
├── encode.go # reflection-based marshal of Go values to TOML
├── interpres_test.go # parser/decoder test suite
├── encode_test.go # encoder test suite
├── cmd/interpres-decode/ # toml-test harness adapter
└── examples/basic/ # runnable usage example
```