Versions in this module Expand all Collapse all v4 v4.2.0 Feb 13, 2022 Changes in this version + func AllowedMethods(handler http.HandlerFunc, methods string) http.HandlerFunc v4.1.0 Feb 13, 2022 Changes in this version + const JSONApplicationType + 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 EnvironMap() map[string]string + 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) (values json.RawMessage) + func SkipRootwithError(jsonBlob []byte) (json.RawMessage, error) + 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/v2 github.com/Cyb3r-Jak3/common/v5