Documentation ¶
Index ¶
- func DownloadAdditionalFiles() error
- func DownloadToFile(url string, path string) error
- func FileExists(path string) bool
- func GetEnvBool(key string, defaultValue bool) bool
- func GetEnvInt(key string, defaultValue int) int
- func GetEnvString(key string, defaultValue string) string
- func GetEnvStringList(key string, defaultValue string) []string
- func WriteFile(path string, content []byte) error
- func WriteFileAsJSON(path string, content interface{}) error
- func WriteFileAsString(path string, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadAdditionalFiles ¶ added in v0.1.6
func DownloadAdditionalFiles() error
Update updates the resource, if supported uses cache.
func DownloadToFile ¶
DownloadToFile downloads a file and saves it to a given path.
func GetEnvBool ¶
GetEnvBool get key environment variable if exist otherwise return defalutValue
func GetEnvString ¶
GetEnvString get key environment variable if exist otherwise return defalutValue
func GetEnvStringList ¶
GetEnvStringList get key environment variable as string list if exist otherwise return defalutValue
func WriteFileAsJSON ¶
WriteFileAsJSON writes JSON to a file.
func WriteFileAsString ¶
WriteFileAsString writes a string to a file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.