proxy.golang.org : github.com/metalim/jsonmap
jsonmap is an ordered map. Same as native Go map, but keeps order of insertion when iterating or serializing to JSON, and with additional methods to iterate from any point. Similar to native map, user has to take care of concurrency and nil map value. Create new map: Set values (remembering order of insertion): Get value: Get value as specific type: Iterate forwards: Iterate backwards: Iterate from any point: Delete element: Push element to the end: Pop element from the end: Clear map: Serialize to JSON: Deserialize from JSON: or use jsonmap.Map as a field in a struct: And serialize/deserialize the struct: Time complexity of operations:
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/metalim/jsonmap
Keywords:
go
, golang
, json
, orderedmap
License: MIT
Latest release: about 1 year ago
First release: over 2 years ago
Namespace: github.com/metalim
Stars: 20 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 7 days ago