MCPcopy
hub / github.com/github/gh-ost / HasKey

Method HasKey

go/mysql/instance_key_map.go:37–40  ·  view source on GitHub ↗

HasKey checks if given key is within the map

(key InstanceKey)

Source from the content-addressed store, hash-verified

35
36// HasKey checks if given key is within the map
37func (ikm *InstanceKeyMap) HasKey(key InstanceKey) bool {
38 _, ok := (*ikm)[key]
39 return ok
40}
41
42// GetInstanceKeys returns keys in this map in the form of an array
43func (ikm *InstanceKeyMap) GetInstanceKeys() []InstanceKey {

Callers 2

ReadConfigFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected