Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 483 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 483 Bytes

orderedmap

Coverage

An alternative generic ordered map in Go with de/serializing from/to JSON.

How to use

See the example code.

test CLI

For testing, deserialize JSON and then serialize it while preserving the order.

$ ./bin/cli -data '{"s":"test","i":3,"a":[{"f":3.14},{"b":true}]}'
{
  "s": "test",
  "i": 3,
  "a": [
    {
      "f": 3.14
    },
    {
      "b": true
    }
  ]
}