{"modulePath":"github.com/devopsext/utils","version":"v0.4.9","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package utils\n\n## Functions\n\n```go\nfunc CallerGetInfo(offset int) (string, string, int)\n```\n\n```go\nfunc Contains(items interface{}, item interface{}) bool\n```\nContains ...\n\n```go\nfunc Content(contentOrPath string) ([]byte, error)\n```\n\n```go\nfunc DirExists(path string) bool\n```\n\n```go\nfunc EnvGet(key string, defaultValue interface{}) interface{}\n```\n\n```go\nfunc FileExists(path string) bool\n```\n\n```go\nfunc GoRoutineID() uint64\n```\n\n```go\nfunc HttpDeleteRaw(client *http.Client, URL, contentType string, authorization string, raw []byte) ([]byte, error)\n```\n\n```go\nfunc HttpDeleteRawWithHeaders(client *http.Client, URL string, headers map[string]string, raw []byte) ([]byte, error)\n```\n\n```go\nfunc HttpGetHeader(client *http.Client, URL string) (map[string][]string, error)\n```\n\n```go\nfunc HttpGetRaw(client *http.Client, URL, contentType string, authorization string) ([]byte, error)\n```\n\n```go\nfunc HttpGetRawRetry(client *http.Client, URL, contentType string, authorization string, maxRetries int, retryHeader string) ([]byte, error)\n```\n\n```go\nfunc HttpGetRawWithHeaders(client *http.Client, URL string, headers map[string]string) ([]byte, error)\n```\n\n```go\nfunc HttpGetRawWithHeadersRetry(client *http.Client, URL string, headers map[string]string, maxRetries int, retryHeader string) ([]byte, error)\n```\n\n```go\nfunc HttpPatchRaw(client *http.Client, URL, contentType string, authorization string, raw []byte) ([]byte, error)\n```\n\n```go\nfunc HttpPatchRawWithHeaders(client *http.Client, URL string, headers map[string]string, raw []byte) ([]byte, error)\n```\n\n```go\nfunc HttpPostRaw(client *http.Client, URL, contentType string, authorization string, raw []byte) ([]byte, error)\n```\n\n```go\nfunc HttpPostRawOutCode(client *http.Client, URL, contentType string, authorization string, raw []byte) (body []byte, code int, err error)\n```\n\n```go\nfunc HttpPostRawRetry(client *http.Client, URL, contentType string, authorization string, raw []byte, maxRetries int, retryHeader string) ([]byte, error)\n```\n\n```go\nfunc HttpPostRawWithHeaders(client *http.Client, URL string, headers map[string]string, raw []byte) ([]byte, error)\n```\n\n```go\nfunc HttpPostRawWithHeadersOutCode(client *http.Client, URL string, headers map[string]string, raw []byte) (body []byte, code int, err error)\n```\n\n```go\nfunc HttpPostRawWithHeadersRetry(client *http.Client, URL string, headers map[string]string, raw []byte, maxRetries int, retryHeader string) ([]byte, error)\n```\n\n```go\nfunc HttpPutRaw(client *http.Client, URL, contentType string, authorization string, raw []byte) ([]byte, error)\n```\n\n```go\nfunc HttpPutRawWithHeaders(client *http.Client, URL string, headers map[string]string, raw []byte) ([]byte, error)\n```\n\n```go\nfunc HttpRequestGetHeader(client *http.Client, URL string) (header map[string][]string, err error)\n```\n\n```go\nfunc HttpRequestRawWithHeaders(client *http.Client, method, URL string, headers map[string]string, raw []byte) ([]byte, error)\n```\n\n```go\nfunc HttpRequestRawWithHeadersOutCode(client *http.Client, method, URL string, headers map[string]string, raw []byte) (body []byte, code int, err error)\n```\n\n```go\nfunc HttpRequestRawWithHeadersOutCodeSilent(client *http.Client, method, URL string, headers map[string]string, raw []byte) (body []byte, code int, err error)\n```\n\n```go\nfunc HttpRequestRawWithHeadersRetry(client *http.Client, method, URL string, headers map[string]string, raw []byte, maxRetries int, retryHeader string) ([]byte, error)\n```\n\n```go\nfunc HttpRequestRawWithRetry(client *http.Client, method, URL string, headers map[string]string, raw []byte, maxRetries int, retryHeader string) (body []byte, code int, err error)\n```\n\n```go\nfunc Index(items interface{}, item interface{}) int\n```\n\n```go\nfunc IsEmpty(v interface{}) bool\n```\nIsEmpty ...\n\n```go\nfunc MapGetKeyValues(s string) map[string]string\n```\n\n```go\nfunc MapGetKeyValuesEx(s, sequenceDelim, keyValueDelim string) map[string]string\n```\n\n```go\nfunc MapToArray(m map[string]string) []string\n```\n\n```go\nfunc MapToArrayWithSeparator(m map[string]string, s string) []string\n```\n\n```go\nfunc NewHttpClient(timeout int, insecure bool) *http.Client\n```\n\n```go\nfunc NewHttpInsecureClient(timeout int) *http.Client\n```\n\n```go\nfunc NewHttpSecureClient(timeout int) *http.Client\n```\n\n","path":"github.com/devopsext/utils","name":"utils","synopsis":"","isRedistributable":true}
