orderedmap icon indicating copy to clipboard operation
orderedmap copied to clipboard

🔃 An ordered map in Go with amortized O(1) for Set, Get, Delete and Len.

Results 14 orderedmap issues
Sort by recently updated
recently updated
newest added

Great library! I've read your comment on PR #16 about creating a type alias to implement JSON marshal, but with v2 generics that isn't possible: ```go type omap = orderedmap.OrderedMap...

``` var rs map[string][]byte // 排序 m := orderedmap.NewOrderedMap() for k, _ := range rs { fmt.Printf(" |-set-> %v\n", el.Key) m.Set(k, rs[k]) } // You can also use Back and...

Hi, I try convert `OrderedMap` to `json`, but receive empty object :/ ```go package main import ( "fmt" "encoding/json" "github.com/elliotchance/orderedmap" ) func main() { m := orderedmap.NewOrderedMap() m.Set("foo", "bar") m.Set("qux",...

It would be illustrative to compare against other main languages, particularly CPP so that people see if this is a good fit for their project!

If you wanted to build “high performance” thing, then why you didn’t implement list by hands? Why you decided to pay overhead of list.Element?

Hi Elliot, Thank you so much for implementing an awesome module. Your orderedmap module has helped me in two projects. One of my project's requirement is to get previous and...

I think Iteration may no need key. You can make that saving keys in elements or not as a option。

Using v2. I saw in the source code that there is a lot of critical sections where race conditions can happen, this can be a feature that doesn't change the...

I am trying to migrate to orderedmap. I am getting an error that says ``` invalid operation: cannot index orderedmap.NewOrderedMap (value of type func() *"github.com/elliotchance/orderedmap".OrderedMap) ``` ``` newDeps := pkg.Dependencies{...