Documentation ¶
Index ¶
- func ArrayToString(a []int, delim string) string
- func CheckError(err error)
- func GetBoolFromEnv(key string, defaultValue bool) (bool, error)
- func GetIntFromEnv(key string, defaultValue int) (int, error)
- func GetKeysFromMap(object map[string]string) []string
- func InterfaceToString(obj interface{}) string
- func NullableFloat(value float64) sql.NullFloat64
- func NullableInt(value int) sql.NullInt64
- func NullableString(value string) sql.NullString
- func ObjectToJSON(obj interface{}) string
- func PrintJSON(obj interface{})
- func ValueInArray(array []interface{}, value interface{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayToString ¶
ArrayToString convert a array to string.
func GetBoolFromEnv ¶
GetBoolFromEnv get a bool value from a Environment Variable, if error or environment variable not exist, the default value will be returned.
func GetIntFromEnv ¶
GetIntFromEnv get a int value from a Environment Variable, if error or environment variable not exist, the default value will be returned.
func GetKeysFromMap ¶
GetKeysFromMap return all map keys from a map
func InterfaceToString ¶
func InterfaceToString(obj interface{}) string
InterfaceToString Convert Interce to string and return
func NullableFloat ¶
func NullableFloat(value float64) sql.NullFloat64
NullableFloat validate null for float
func NullableString ¶
func NullableString(value string) sql.NullString
NullableString validate null for string
func ObjectToJSON ¶
func ObjectToJSON(obj interface{}) string
ObjectToJSON return string object json
func PrintJSON ¶
func PrintJSON(obj interface{})
PrintJSON print in terminal console, object in json
func ValueInArray ¶
func ValueInArray(array []interface{}, value interface{}) bool
ValueInArray validate the existence of a value in Array.
Types ¶
This section is empty.