GetInstanceKeys returns keys in this map in the form of an array
()
| 41 | |
| 42 | // GetInstanceKeys returns keys in this map in the form of an array |
| 43 | func (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 |
| 52 | func (ikm *InstanceKeyMap) MarshalJSON() ([]byte, error) { |
no outgoing calls
no test coverage detected