Documentation ¶
Index ¶
- func CaptureStdout(f func()) string
- func CopyMap(originalMap map[string]interface{}) map[string]interface{}
- func DeleteValueFromStruct(key string, object interface{}) error
- func ErrorPrint(str string) error
- func ErrorPrintf(str string, args ...interface{}) error
- func GetQueryVars(r *http.Request) url.Values
- func GetRouteVars(r *http.Request) map[string]string
- func InArray(needle interface{}, haystack interface{}) (bool, int)
- func LoadEnvFile(env string) error
- func SliceDiff(refKeys, toDelete []string) []string
- func StringInSlice(searchVal string, list []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureStdout ¶
func CaptureStdout(f func()) string
CaptureStdout is used to get what is logged
func DeleteValueFromStruct ¶
DeleteValueFromStruct filters struct properties Solution taken from Sarath Sadasivan Pillai => https://sarathsp.com/ Modified for our needs
func ErrorPrintf ¶
ErrorPrintf returns go error from formater
func GetQueryVars ¶
GetQueryVars gets variables from query string
func GetRouteVars ¶
GetRouteVars gets variables from URL
func StringInSlice ¶
StringInSlice searches value in slice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.