Versions in this module Expand all Collapse all v2 v2.0.1 Sep 22, 2021 Changes in this version + const Aqua + const Black + const Blue + const DarkAqua + const DarkBlue + const DarkButNotBlack + const DarkGold + const DarkGreen + const DarkGrey + const DarkNavy + const DarkOrange + const DarkPurple + const DarkRed + const DarkVividPink + const DarkerGrey + const Fuschia + const Gold + const Green + const Grey + const JSONApplicationType + const LightGrey + const LuminousVividPink + const Navy + const NotQuiteBlack + const Orange + const Purple + const Red + const White + const Yellow + func AllowedMethod(handler http.HandlerFunc, methods string) http.HandlerFunc + func ContentResponse(w http.ResponseWriter, contentType string, response []byte) + func DoJSONRequest(method, url string, requestBody, responseBody interface{}) (*http.Response, error) + func DownloadFile(url, filename string) (ok bool, err error) + func FloatSearch(target float64, array []float64) bool + func GenerateRandInt(x int) (returnValue int, returnError error) + func GetEnv(key, fallback string) string + func GetEnvSecret(secretName string) (secret string) + func HashFile(algorithm string, filepath string) (value string, err error) + func IntSearch(target int, array []int) bool + func JSONMarshalResponse(w http.ResponseWriter, body interface{}) + func JSONResponse(w http.ResponseWriter, response []byte) + func ParseYamlOrJSON(fileName string, outputInterface interface{}) (err error) + func SkipRoot(jsonBlob []byte) json.RawMessage + func StringResponse(w http.ResponseWriter, response string) + func StringSearch(target string, array []string) bool Other modules containing this package github.com/Cyb3r-Jak3/common github.com/Cyb3r-Jak3/common/v4 github.com/Cyb3r-Jak3/common/v5