Skip to content

Initial release

Compare
Choose a tag to compare
@m-murad m-murad released this 03 Aug 19:29
· 10 commits to master since this release

Initial release with following functions

m.New() - Will initialise a new Map.
m.Put(key interface{}, val interface{}) - Create/Update an entry in the Map.
m.Get() (value interface{}, ok bool) - Retrive value saved for a key.
m.Delete(key interface{}) bool - Delete an entry from the Map
m.UnorderedRange(f func(key interface{}, value interface{})) - Range over the Map in an unordered sequence.
m.OrderedRange(f func(key interface{}, value interface{})) - Range over the Map in the sequence in which elements were added.