Documentation
¶
Index ¶
- Constants
- func BuildDirectoryStructureIfNotExists(path string) error
- func CloseGenericResponseWithLog(resp *http.Response, respErr error)
- func FileExists(filePath string) bool
- func FileExistsAndNotEmpty(filePath string) bool
- func GetCleanMapFromStruct(st interface{}) map[string]interface{}
- func IsNilValueInterface(i interface{}) bool
- func ReadBytesFromFile(path string) ([]byte, error)
- func ReadJSONFromFile(path string, data interface{}) error
- func WriteBytesToFile(b []byte, path string) error
- func WriteIndentedJSONToFile(data interface{}, path string) error
Constants ¶
View Source
const (
DefaultRequestTimeout = 120 // Default request timeout in seconds
)
Variables ¶
This section is empty.
Functions ¶
func CloseGenericResponseWithLog ¶ added in v0.7.7
func FileExists ¶
func FileExistsAndNotEmpty ¶
func GetCleanMapFromStruct ¶
func GetCleanMapFromStruct(st interface{}) map[string]interface{}
GetCleanMapFromStruct returns a map with only the non-nil fields warning: this function will cause problems if trying to use default values in the struct
func IsNilValueInterface ¶ added in v0.7.13
func IsNilValueInterface(i interface{}) bool
func ReadBytesFromFile ¶
func ReadJSONFromFile ¶
func WriteBytesToFile ¶
func WriteIndentedJSONToFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.