Documentation
¶
Index ¶
- func GetRepositoryPath() string
- func JSONMarshalStrict(obj interface{}) []byte
- func JSONUnmarshal(src []byte, dst interface{})
- func JSONUnmarshalFromFile(filepath string, dst interface{})
- func ReadFile(filepath string) []byte
- func YAMLMarshalStrict(obj interface{}) []byte
- func YAMLUnmarshal(src []byte, dst interface{})
- func YAMLUnmarshalFromFile(filepath string, dst interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRepositoryPath ¶
func GetRepositoryPath() string
func JSONMarshalStrict ¶
func JSONMarshalStrict(obj interface{}) []byte
simple wrapper to json.Marshal for testing, to ensure the test gets aborted in case of error
func JSONUnmarshal ¶
func JSONUnmarshal(src []byte, dst interface{})
simple wrapper to json.Unmarshal for testing, to ensure the test gets aborted in case of error
func JSONUnmarshalFromFile ¶ added in v0.51.0
func JSONUnmarshalFromFile(filepath string, dst interface{})
func ReadFile ¶
simple wrapper to os.ReadFile for testing, to ensure the test gets aborted in case of error
func YAMLMarshalStrict ¶
func YAMLMarshalStrict(obj interface{}) []byte
simple wrapper to yaml.Unmarshal for testing, to ensure the test gets aborted in case of error
func YAMLUnmarshal ¶ added in v0.51.0
func YAMLUnmarshal(src []byte, dst interface{})
func YAMLUnmarshalFromFile ¶ added in v0.51.0
func YAMLUnmarshalFromFile(filepath string, dst interface{})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.