Documentation ¶
Index ¶
- func CreateDirectory(dirName string) error
- func DeleteEmpty(s []string) []string
- func GetAPIData(url string) (*http.Response, error)
- func ParseJSON(body []byte, i interface{}) error
- func ParseResponse(resp *http.Response) ([]byte, error)
- func StringInSlice(a string, list []string) bool
- func StructPrint(v interface{})
- func WrapError(e error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirectory ¶
CreateDirectory checks if a directory exists and if not creates it taken from https://www.socketloop.com/tutorials/golang-check-if-directory-exist-and-create-if-does-not-exist
func GetAPIData ¶
GetAPIData wraps the get request
func ParseResponse ¶
ParseResponse wraps ioutil.Readall
func StringInSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.