Documentation ¶
Index ¶
- Constants
- func Contains(slice []string, containsValue string) bool
- func Do(req *http.Request, client *http.Client) (*http.Response, error)
- func EqualStringSlices(slice1 []string, slice2 []string) bool
- func Get(url string, client *http.Client) (*http.Response, error)
- func OpenBrowser(url string)
- func Post(url, contentType string, body io.Reader, client *http.Client, ...) (*http.Response, error)
- func PrettyYaml(data interface{}) (result string, err error)
- func UnescapeUnicodeCharacters(raw string) string
- func Unique(slice []string) []string
- func WaitForTermination(ctx context.Context, cancel context.CancelFunc)
Constants ¶
View Source
const ( Black = "\033[1;30m%s\033[0m" Red = "\033[1;31m%s\033[0m" Green = "\033[1;32m%s\033[0m" Yellow = "\033[1;33m%s\033[0m" Blue = "\033[1;34m%s\033[0m" Magenta = "\033[1;35m%s\033[0m" Cyan = "\033[1;36m%s\033[0m" White = "\033[1;37m%s\033[0m" )
Variables ¶
This section is empty.
Functions ¶
func Do ¶
Do - When err is nil, resp always contains a non-nil resp.Body. Caller should close resp.Body when done reading from it.
func EqualStringSlices ¶
func Get ¶
Get - When err is nil, resp always contains a non-nil resp.Body. Caller should close resp.Body when done reading from it.
func OpenBrowser ¶
func OpenBrowser(url string)
func Post ¶
func Post(url, contentType string, body io.Reader, client *http.Client, licenseKey string) (*http.Response, error)
Post - When err is nil, resp always contains a non-nil resp.Body. Caller should close resp.Body when done reading from it.
func PrettyYaml ¶
func WaitForTermination ¶
func WaitForTermination(ctx context.Context, cancel context.CancelFunc)
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.