Documentation ¶
Index ¶
- func AppendStringToFile(str string, file string)
- func DeleteDir(dir string) error
- func Download(url string) ([]byte, error)
- func DownloadString(url string) (string, error)
- func DownloadURL(url string, file string) bool
- func ExtractZip(zip string, dest string)
- func FileExists(file string) bool
- func FormatPath(path string) string
- func GetDataMap(jsonStr string) map[string]interface{}
- func GetQuery(jsonStr string) *jsonq.JsonQuery
- func GetRunPath() string
- func GetStringValue(jsonStr string, key string) string
- func MakeDir(fileName string)
- func ReadLinesFromFile(fileName string) []string
- func ReadStringFromFile(file string) string
- func ToJson(i interface{}) string
- func WriteStringToFile(str string, file string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendStringToFile ¶
AppendStringToFile appends a string to a file, or creates a new file with the string if the file does not exist
func DownloadString ¶
func DownloadURL ¶
func ExtractZip ¶
func FormatPath ¶
func GetDataMap ¶
func GetRunPath ¶
func GetRunPath() string
func GetStringValue ¶
func ReadLinesFromFile ¶
ReadLinesFromFile reads each line of the file into a string array
func ReadStringFromFile ¶
ReadStringFromFile reads a string from a file
func WriteStringToFile ¶
WriteStringToFile writes a string to a file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.