Great Post, short, to the point and includes tests with code. I especially appreciate the tests to show how to use it and the performance considerations.

I needed a sorted map. I created my own but was looking for some to compare with to see how my implementation matched up with others. In my case I was specifically interested in having the keys sorted not based on order of insertion but by using the key, a date string.

Written by

Engineer and veteran, 13 years of Design Engineering, 20+ years in Software Engineering, Go enthusiast. I read a lot, write some too,

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store