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

Method GetInstanceKeys

go/mysql/instance_key_map.go:43–49  ·  view source on GitHub ↗

GetInstanceKeys returns keys in this map in the form of an array

()

Source from the content-addressed store, hash-verified

41
42// GetInstanceKeys returns keys in this map in the form of an array
43func (ikm *InstanceKeyMap) GetInstanceKeys() []InstanceKey {
44 res := []InstanceKey{}
45 for key := range *ikm {
46 res = append(res, key)
47 }
48 return res
49}
50
51// MarshalJSON will marshal this map as JSON
52func (ikm *InstanceKeyMap) MarshalJSON() ([]byte, error) {

Callers 2

MarshalJSONMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected