The Startup
Published in

The Startup

An Ordered Map in Go

Photo by Jonah Pettrich on Unsplash

An ordered map (also called a linked hash map in Java) is a data structure that allows amortized O(1) for access and mutation just like a map, but the elements maintain their order.

For this I created the package. Here is some basic usage:

m := orderedmap.NewOrderedMap()// Keys and values can be any type.
m.Set("foo", "bar")




Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +756K followers.

Recommended from Medium

A Better Datadog AWS Integration for Organizations with Multiple Accounts

Setting direct connection between PowerBi & ServiceNow (No code)


Communication between Go service and Postgres database (both running in Docker)

Finding the Holy-Grail

Every Python Dictionary Method Explained Simply

A New Web Scraper For Python

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
Elliot Chance

Elliot Chance

I’m a data nerd and TDD enthusiast originally from Sydney. Currently working for Uber in New York. My thoughts here are my own. 🤓

More from Medium

Getting started with GO Programming Language — Part Two

Battle of Concurrency | Goroutines vs Threads.

Concurrency in Golang

Golang with Leetcode: Letter Combinations of a Phone Number