feat!: rework the public API to json/v2-style variadic options
Test / test (push) Successful in 1m49s
Test / test (push) Successful in 1m49s
Assisted-by: GLM 5.3 Flash
This commit is contained in:
+1
-1
@@ -97,7 +97,7 @@ func TestMarshalOrderedMap(t *testing.T) {
|
||||
m := NewOrderedMap()
|
||||
m.Set("zebra", int64(1))
|
||||
m.Set("alpha", int64(2))
|
||||
out, err := NewEncoder().InlineTables(60).Marshal(map[string]any{"t": m})
|
||||
out, err := Marshal(map[string]any{"t": m}, InlineTables(60))
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user