go-ordered-map icon indicating copy to clipboard operation
go-ordered-map copied to clipboard

Optimal implementation of ordered maps for Golang - ie maps that remember the order in which keys were inserted.

Results 9 go-ordered-map issues
Sort by recently updated
recently updated
newest added

If I had two `OrderedMap`s, which contain the same elements with the same insertion order, but which were created by different sequences of actions, then those should be equal in...

To filter elements from the OrderedMap, the most obvious approach would be the following: ```go for pair := om.Oldest(); pair != nil; pair = pair.Next() { if Predicate(pair.Value) { om.Delete(pair.Key)...

Do you hope to support configuring the json SetEscapeHTML option? The json library enables EscapeHTML by default. grateful

Using 2.1.8 Having this struct: ``` type A struct { Defaults string `yaml:"defaults"` Others orderedmap.OrderedMap[string, string] `yaml:",inline"` } ``` and this YAML: ``` defaults: "some defaults" a: "a" b: "b"...

Would it be possible to add cbor marshal/demarshal support as well?

Currently, there is no trivial way to replace the key of a pair while keeping the order intact, as far as I'm aware.

Fixes https://github.com/wk8/go-ordered-map/issues/37

Hi @wk8 sorry I tried to fix the CI but circleci haven't released a version for go 1.23 yet need to wait for this PR to merge then it should...