Documentation
¶
Index ¶
- func CloseButLogError(closer io.Closer, callContext string)
- func Contains(slice []string, item string) bool
- func Exists(path string) bool
- func GetContentOfFile(path string) (string, error)
- func ReadJSONFile(structure interface{}, path string) error
- func Reverse(s string) (result string)
- func WriteJSONFile(structure interface{}, path string) error
- func WriteJSONFileIndented(structure interface{}, path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseButLogError ¶
CloseButLogError closes IO closables and logs an error
func GetContentOfFile ¶
GetContentOfFile all content of the file at the given path and returns it as string
func ReadJSONFile ¶
ReadJSONFile reads a json file from the given path and mappes the fields to the given struct
func WriteJSONFile ¶
WriteJSONFile writes a structure to a json file
func WriteJSONFileIndented ¶
WriteJSONFileIndented writes a structure indented to a json file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.