Do you mean ordered map or sorted map... either way, as long as the N is small, then you can use a slice to provide the extra functionality:
1. sorted map https://play.golang.org/p/oLM4u5HwQ6 2. ordered map https://play.golang.org/p/OFXhFyyrmZ On Wednesday, 16 August 2017 03:17:29 UTC+3, Tong Sun wrote: > > Sorry if this topic has been discussed, but I'm looking for a Go ordered > map implementation. > > I've found > > - https://github.com/samdolan/go-ordered-map > - https://github.com/emperorcow/orderedmap > etc > > But none seems to be being maintained. > > Anyone has used or can recommend a good Go ordered map implementation? > > Thx > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.