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

Method Keys

container/gmap/gmap_hash_str_str_map.go:186–189  ·  view source on GitHub ↗

Keys returns all keys of the map as a slice.

()

Source from the content-addressed store, hash-verified

184
185// Keys returns all keys of the map as a slice.
186func (m *StrStrMap) Keys() []string {
187 m.lazyInit()
188 return m.KVMap.Keys()
189}
190
191// Values returns all values of the map as a slice.
192func (m *StrStrMap) Values() []string {

Callers 3

Test_StrStrMap_VarFunction · 0.95
Test_StrStrMap_BasicFunction · 0.95
ExampleStrStrMap_KeysFunction · 0.95

Calls 2

lazyInitMethod · 0.95
KeysMethod · 0.65

Tested by 3

Test_StrStrMap_VarFunction · 0.76
Test_StrStrMap_BasicFunction · 0.76
ExampleStrStrMap_KeysFunction · 0.76