Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEmptyOrNil ¶ added in v0.1.188
func IsEmptyOrNil(i interface{}) bool
IsEmptyOrNil checks if a value is empty or nil, useful for strings and arrays
func IsZero ¶ added in v0.1.188
IsZero : determine is zero value 1. string => empty string 2. bool => false 3. function => nil 4. map => nil (uninitialized map) 5. slice => nil (uninitialized slice)
func PrettyJSON ¶ added in v0.1.220
func PrettyJSON(obj interface{}) string
PrettyJSON returns a pretty-printed JSON string for the given object.
func RandomString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.