Categorygithub.com/kazamori/orderedmap
repositorypackage
0.0.0-20250123075419-1ba9bd53b5fe
Repository: https://github.com/kazamori/orderedmap.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

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
    }
  ]
}