github.com/jimschubert/ordered-map (go): Package orderedmap defines a generic Ordered Map data structure with an API similar to that of container/list.  The intent of an ordered map is to retain a map's key insertion order, similar to LinkedHashMap from Java. It is *not* to constrain a map to *sorted* order.  Go does not allow for extensions to built-in maps. As such there is no "range" or keyed assignments.  Construct a map with contents as follows:  Iterate the map with the provided iterator:  Or, with lengthier for loops:  Get the value defined at some key:  There are also some utility functions:  There are functions to manipulate the map as well (including the order of elements):
Keywords: go|golang