Documentation ¶
Index ¶
- func LoadData(data []byte, cfg interface{}) error
- func LoadFile(filename string, cfg interface{}) error
- func MergeJSONs(left, right []byte) ([]byte, error)
- func PatchJSON(left []byte, patch map[string]interface{}) ([]byte, error)
- func SaveData(cfg interface{}) ([]byte, error)
- func SaveFile(filename string, cfg interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeJSONs ¶
Unfortunately, if we want to apply a JSON patch to some configuration, we cannot just unmarshal it twice - in that case json.RawMessage objects will be completely replaced, but not merged.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.