# Functions
ConvertInterfaceToBool will convert an interface `value` into boolean.
ConvertInterfaceToFloat will convert an interface `value` into float.
ConvertInterfaceToSlice will convert an interface `value` into slice.
ConvertInterfaceToString will convert an interface `value` into string.
CurrFuncName return the name of the current running function.
CurrVersion will return the current version, only support module mode binaries.
DecodeJWT will decode JWT string into `claims` structure using a secret string.
DeleteStringFromSlice will delete a string from a specific index of a slice.
EncodeJWT will encode JWT `claims` using a secret string and return a signed token as string.
ExtractJWTFromHeader will extract JWT from `Authorization` HTTP header and returns as string.
FindStringInSlice returns the smallest index at which str == slice[index], or -1 if there is no such index.
FloatInRange will return the floating point number provided in `i` if the number is between min and max.
GetRandomNumberFromRange will generate and return a random integer from a range.
if !slice.HasStringInSlice(src, "ee", modifier) { }.
No description provided by the author
IsFilesExistInDirectory will check a file(s) is exist in a specific diretory or not.
select { case <-time.After(waitTime): case <-c.Done(): return c.Err() } }.
Max returns a greater number of x and y, otherwise y.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
helpers.StructStripTags(&test, true).