MCPcopy
hub / github.com/gogf/gf / Sets

Method Sets

container/gmap/gmap_hash_str_str_map.go:92–95  ·  view source on GitHub ↗

Sets batch sets key-values to the hash map.

(data map[string]string)

Source from the content-addressed store, hash-verified

90
91// Sets batch sets key-values to the hash map.
92func (m *StrStrMap) Sets(data map[string]string) {
93 m.lazyInit()
94 m.KVMap.Sets(data)
95}
96
97// Search searches the map with given `key`.
98// Second return parameter `found` is true if key was found, otherwise false.

Callers 15

Test_StrStrMap_BatchFunction · 0.95
ExampleStrStrMap_SetsFunction · 0.95
ExampleStrStrMap_PopFunction · 0.95
ExampleStrStrMap_PopsFunction · 0.95
ExampleStrStrMap_RemovesFunction · 0.95
ExampleStrStrMap_KeysFunction · 0.95
ExampleStrStrMap_ValuesFunction · 0.95
ExampleStrStrMap_SizeFunction · 0.95
ExampleStrStrMap_ClearFunction · 0.95
ExampleStrStrMap_ReplaceFunction · 0.95

Calls 2

lazyInitMethod · 0.95
SetsMethod · 0.65

Tested by 15

Test_StrStrMap_BatchFunction · 0.76
ExampleStrStrMap_SetsFunction · 0.76
ExampleStrStrMap_PopFunction · 0.76
ExampleStrStrMap_PopsFunction · 0.76
ExampleStrStrMap_RemovesFunction · 0.76
ExampleStrStrMap_KeysFunction · 0.76
ExampleStrStrMap_ValuesFunction · 0.76
ExampleStrStrMap_SizeFunction · 0.76
ExampleStrStrMap_ClearFunction · 0.76
ExampleStrStrMap_ReplaceFunction · 0.76