Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/elliotchance/orderedmap
/ functions
Functions
377 in github.com/elliotchance/orderedmap
⨍
Functions
377
◇
Types & classes
12
↓ 196 callers
Method
Set
Set will set (or replace) a value for a key. If the key was new, then true will be returned. The returned value will be false if the value was replace
orderedmap.go:36
↓ 61 callers
Function
NewOrderedMap
()
orderedmap.go:8
↓ 58 callers
Method
Get
Get returns the value for a key. If the key does not exist, the second return parameter will be false and the value will be nil.
orderedmap.go:24
↓ 36 callers
Method
Keys
Keys returns all of the keys in the order they were inserted. If a key was replaced it will retain the same position. To ensure most recently set keys
orderedmap.go:77
↓ 25 callers
Method
Delete
Delete will remove a key from the map. It will return true if the key was removed (the key did exist).
orderedmap.go:87
↓ 23 callers
Method
GetElement
GetElement returns the element for a key. If the key does not exist, the pointer will be nil.
orderedmap.go:60
↓ 21 callers
Method
Has
Has checks if a key exists in the map.
orderedmap.go:122
↓ 21 callers
Method
Len
Len returns the number of elements in the map.
orderedmap.go:70
↓ 11 callers
Method
Front
Front will return the element that is the first (oldest Set element). If there are no elements this will return nil.
orderedmap.go:99
↓ 8 callers
Function
nothing
(v interface{})
orderedmap_test.go:820
↓ 8 callers
Function
nothing
(v interface{})
v2/orderedmap_test.go:786
↓ 8 callers
Function
nothing
(v interface{})
v3/orderedmap_test.go:801
↓ 7 callers
Method
Next
Next returns the next list element or nil.
v2/list.go:20
↓ 6 callers
Method
Back
Back will return the element that is the last (most recent Set element). If there are no elements this will return nil.
orderedmap.go:105
↓ 6 callers
Method
Set
Set will set (or replace) a value for a key. If the key was new, then true will be returned. The returned value will be false if the value was replace
v2/orderedmap.go:44
↓ 5 callers
Method
Next
Next returns the next list element or nil.
v3/list.go:20
↓ 4 callers
Method
Front
Front will return the element that is the first (oldest Set element). If there are no elements this will return nil.
v3/orderedmap.go:163
↓ 4 callers
Method
Len
Len returns the number of elements in the map.
v2/orderedmap.go:93
↓ 4 callers
Method
ReplaceKey
ReplaceKey replaces an existing key with a new key while preserving order of the value. This function will return true if the operation was successful
v2/orderedmap.go:59
↓ 4 callers
Method
ReplaceKey
ReplaceKey replaces an existing key with a new key while preserving order of the value. This function will return true if the operation was successful
v3/orderedmap.go:61
↓ 4 callers
Method
Set
Set will set (or replace) a value for a key. If the key was new, then true will be returned. The returned value will be false if the value was replace
v3/orderedmap.go:46
↓ 3 callers
Method
Copy
Copy returns a new OrderedMap with the same elements. Using Copy while there are concurrent writes may mangle the result.
orderedmap.go:111
↓ 3 callers
Function
benchmarkOrderedMap_Delete
(multiplier int)
orderedmap_test.go:497
↓ 3 callers
Function
benchmarkOrderedMap_Get
(multiplier int)
orderedmap_test.go:423
↓ 3 callers
Function
benchmarkOrderedMap_GetElement
(multiplier int)
orderedmap_test.go:440
↓ 3 callers
Function
benchmarkOrderedMap_Keys
(multiplier int)
orderedmap_test.go:585
↓ 3 callers
Function
benchmarkOrderedMap_Len
(multiplier int)
orderedmap_test.go:459
↓ 3 callers
Function
benchmarkOrderedMap_Set
(multiplier int)
orderedmap_test.go:393
↓ 2 callers
Method
Front
Front will return the element that is the first (oldest Set element). If there are no elements this will return nil.
v2/orderedmap.go:122
↓ 2 callers
Method
Len
Len returns the number of elements in the map.
v3/orderedmap.go:95
↓ 2 callers
Function
NewOrderedMapWithCapacity
NewOrderedMapWithCapacity creates a map with enough pre-allocated space to hold the specified number of elements.
orderedmap.go:16
↓ 1 callers
Method
AllFromBack
AllFromBack returns an iterator that yields all elements in the map starting at the back (most recent Set element).
v3/orderedmap.go:113
↓ 1 callers
Method
AllFromFront
AllFromFront returns an iterator that yields all elements in the map starting at the front (oldest Set element).
v3/orderedmap.go:101
↓ 1 callers
Method
Back
Back returns the last element of list l or nil if the list is empty.
v2/list.go:45
↓ 1 callers
Method
Back
Back will return the element that is the last (most recent Set element). If there are no elements this will return nil.
v3/orderedmap.go:169
↓ 1 callers
Method
Front
Front returns the first element of list l or nil if the list is empty.
v2/list.go:40
↓ 1 callers
Method
Iterator
()
v2/iterator.go:8
↓ 1 callers
Method
Prev
Prev returns the previous list element or nil.
v2/list.go:25
↓ 1 callers
Method
Prev
Prev returns the previous list element or nil.
v3/list.go:25
↓ 1 callers
Method
PushBack
PushBack inserts a new element e with value v at the back of list l and returns e.
list.go:82
↓ 1 callers
Method
PushBack
PushBack inserts a new element e with value v at the back of list l and returns e.
v2/list.go:82
↓ 1 callers
Method
PushBack
PushBack inserts a new element e with value v at the back of list l and returns e.
v3/list.go:82
↓ 1 callers
Method
Remove
Remove removes e from its list
list.go:50
↓ 1 callers
Method
Remove
Remove removes e from its list
v2/list.go:50
↓ 1 callers
Method
Remove
Remove removes e from its list
v3/list.go:50
↓ 1 callers
Method
ReverseIterator
()
v2/iterator.go:18
↓ 1 callers
Function
benchmarkBigMapString_Get
()
orderedmap_test.go:1033
↓ 1 callers
Function
benchmarkBigMapString_Get
()
v2/orderedmap_test.go:997
↓ 1 callers
Function
benchmarkBigMapString_Get
()
v3/orderedmap_test.go:1013
↓ 1 callers
Function
benchmarkBigMapString_Has
()
orderedmap_test.go:1132
↓ 1 callers
Function
benchmarkBigMapString_Has
()
v2/orderedmap_test.go:1096
↓ 1 callers
Function
benchmarkBigMapString_Has
()
v3/orderedmap_test.go:1113
↓ 1 callers
Function
benchmarkBigMapString_Iterate
()
orderedmap_test.go:1093
↓ 1 callers
Function
benchmarkBigMapString_Iterate
()
v2/orderedmap_test.go:1057
↓ 1 callers
Function
benchmarkBigMapString_Iterate
()
v3/orderedmap_test.go:1073
↓ 1 callers
Function
benchmarkBigMapString_Set
()
orderedmap_test.go:963
↓ 1 callers
Function
benchmarkBigMapString_Set
()
v2/orderedmap_test.go:929
↓ 1 callers
Function
benchmarkBigMapString_Set
()
v3/orderedmap_test.go:945
↓ 1 callers
Function
benchmarkBigMapWithCapacity_Set
()
orderedmap_test.go:854
↓ 1 callers
Function
benchmarkBigMapWithCapacity_Set
()
v2/orderedmap_test.go:820
↓ 1 callers
Function
benchmarkBigMapWithCapacity_Set
()
v3/orderedmap_test.go:835
↓ 1 callers
Function
benchmarkBigMap_Get
()
orderedmap_test.go:869
↓ 1 callers
Function
benchmarkBigMap_Get
()
v2/orderedmap_test.go:835
↓ 1 callers
Function
benchmarkBigMap_Get
()
v3/orderedmap_test.go:850
↓ 1 callers
Function
benchmarkBigMap_Has
()
orderedmap_test.go:975
↓ 1 callers
Function
benchmarkBigMap_Has
()
v2/orderedmap_test.go:941
↓ 1 callers
Function
benchmarkBigMap_Has
()
v3/orderedmap_test.go:957
↓ 1 callers
Function
benchmarkBigMap_Iterate
()
orderedmap_test.go:926
↓ 1 callers
Function
benchmarkBigMap_Iterate
()
v2/orderedmap_test.go:892
↓ 1 callers
Function
benchmarkBigMap_Iterate
()
v3/orderedmap_test.go:907
↓ 1 callers
Function
benchmarkBigMap_Set
()
orderedmap_test.go:824
↓ 1 callers
Function
benchmarkBigMap_Set
()
v2/orderedmap_test.go:790
↓ 1 callers
Function
benchmarkBigMap_Set
()
v3/orderedmap_test.go:805
↓ 1 callers
Function
benchmarkBigOrderedMapString_Get
()
orderedmap_test.go:1053
↓ 1 callers
Function
benchmarkBigOrderedMapString_Get
()
v2/orderedmap_test.go:1017
↓ 1 callers
Function
benchmarkBigOrderedMapString_Get
()
v3/orderedmap_test.go:1033
↓ 1 callers
Function
benchmarkBigOrderedMapString_GetElement
()
orderedmap_test.go:1073
↓ 1 callers
Function
benchmarkBigOrderedMapString_GetElement
()
v2/orderedmap_test.go:1037
↓ 1 callers
Function
benchmarkBigOrderedMapString_GetElement
()
v3/orderedmap_test.go:1053
↓ 1 callers
Function
benchmarkBigOrderedMapString_Has
()
orderedmap_test.go:1152
↓ 1 callers
Function
benchmarkBigOrderedMapString_Has
()
v2/orderedmap_test.go:1115
↓ 1 callers
Function
benchmarkBigOrderedMapString_Has
()
v3/orderedmap_test.go:1132
↓ 1 callers
Function
benchmarkBigOrderedMapString_Iterate
()
orderedmap_test.go:1111
↓ 1 callers
Function
benchmarkBigOrderedMapString_Iterate
()
v2/orderedmap_test.go:1075
↓ 1 callers
Function
benchmarkBigOrderedMapString_Iterate
()
v3/orderedmap_test.go:1092
↓ 1 callers
Function
benchmarkBigOrderedMapString_Set
()
orderedmap_test.go:1017
↓ 1 callers
Function
benchmarkBigOrderedMapString_Set
()
v2/orderedmap_test.go:981
↓ 1 callers
Function
benchmarkBigOrderedMapString_Set
()
v3/orderedmap_test.go:997
↓ 1 callers
Function
benchmarkBigOrderedMap_Get
()
orderedmap_test.go:888
↓ 1 callers
Function
benchmarkBigOrderedMap_Get
()
v2/orderedmap_test.go:854
↓ 1 callers
Function
benchmarkBigOrderedMap_Get
()
v3/orderedmap_test.go:869
↓ 1 callers
Function
benchmarkBigOrderedMap_GetElement
()
orderedmap_test.go:907
↓ 1 callers
Function
benchmarkBigOrderedMap_GetElement
()
v2/orderedmap_test.go:873
↓ 1 callers
Function
benchmarkBigOrderedMap_GetElement
()
v3/orderedmap_test.go:888
↓ 1 callers
Function
benchmarkBigOrderedMap_Has
()
orderedmap_test.go:994
↓ 1 callers
Function
benchmarkBigOrderedMap_Has
()
v2/orderedmap_test.go:959
↓ 1 callers
Function
benchmarkBigOrderedMap_Has
()
v3/orderedmap_test.go:975
↓ 1 callers
Function
benchmarkBigOrderedMap_Iterate
()
orderedmap_test.go:943
↓ 1 callers
Function
benchmarkBigOrderedMap_Iterate
()
v2/orderedmap_test.go:909
↓ 1 callers
Function
benchmarkBigOrderedMap_Iterate
()
v3/orderedmap_test.go:925
next →
1–100 of 377, ranked by callers