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

Method ReadJson

go/mysql/instance_key_map.go:78–86  ·  view source on GitHub ↗

ReadJson unmarshalls a json into this map

(jsonString string)

Source from the content-addressed store, hash-verified

76
77// ReadJson unmarshalls a json into this map
78func (ikm *InstanceKeyMap) ReadJson(jsonString string) error {
79 var keys []InstanceKey
80 err := json.Unmarshal([]byte(jsonString), &keys)
81 if err != nil {
82 return err
83 }
84 ikm.AddKeys(keys)
85 return err
86}
87
88// ReadJson unmarshalls a json into this map
89func (ikm *InstanceKeyMap) ReadCommaDelimitedList(list string) error {

Callers

nothing calls this directly

Calls 1

AddKeysMethod · 0.95

Tested by

no test coverage detected