refactor: rename the encoder layout options
Test / test (push) Successful in 1m35s

Assisted-by: GLM 5.3 Flash
This commit is contained in:
2026-09-22 01:09:00 +02:00
parent bef1d3fbd9
commit d92bb56853
9 changed files with 66 additions and 49 deletions
+2 -2
View File
@@ -131,9 +131,9 @@ The value `MarshalTOML` returns is encoded in place of the receiver;
```go
out, err := interpres.NewEncoder().
GroupByKind(false). // preserve declaration order
Layout(interpres.LayoutKindDeclaration), // preserve declaration order
OmitEmptyArrays(). // skip empty scalar arrays
UseLiteralMultiline(80). // long multi-line strings as literal blocks
LiteralMultiline(80), // long multi-line strings as literal blocks
Marshal(cfg)
```