config

package
Version: v0.0.0-...-d083035 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2021 License: Apache-2.0 Imports: 6 Imported by: 36

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadData

func LoadData(data []byte, cfg interface{}) error

func LoadFile

func LoadFile(filename string, cfg interface{}) error

func MergeJSONData

func MergeJSONData(left, right []byte) ([]byte, error)

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.

func SaveData

func SaveData(cfg interface{}) ([]byte, error)

func SaveFile

func SaveFile(filename string, cfg interface{}) error

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL