Documentation
¶
Overview ¶
Package util provides small utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fetch ¶
Fetch executes req and returns the body and error if any. An error is returned when resp.StatusCode >= 400 or ioutil.Readall(resp.body) fails.
func HandleError ¶
func HandleError(err error)
HandleError exits the program if err is not nil and prints it.
func RedirectNull ¶
RedirectNull redirect files to the operating system's “null device”. The returned function restores this redirection.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.