wk8 / go-ordered-map

Optimal implementation of ordered maps for Golang - ie maps that remember the order in which keys were inserted.
Apache License 2.0
523 stars 40 forks source link

Add GetPair function #1

Closed SVilgelm closed 4 years ago

SVilgelm commented 4 years ago

GetPair looks for the given key, and returns the pair associated with it

SVilgelm commented 4 years ago

@wk8 Hi, thank you so much for this lib. I like it because it's so minimalistic and I use it in some of the projects. And today I found that I can increase a performance if the code will not iterate through all list because there is know key from where it needs to iterate

SVilgelm commented 4 years ago

@wk8 Done

wk8 commented 4 years ago

Thank you @SVilgelm :) !

SVilgelm commented 4 years ago

@wk8 Hi, sorry for the question, but what do you think about adding go.mod? I don't think it can add an extra value, but it's a new way how the go works now :-)

wk8 commented 4 years ago

@SVilgelm : if you feel like making a PR replacing glide with go modules, that'd be great! :)

SVilgelm commented 4 years ago

that's exactly what I want tot do