Documentation
¶
Index ¶
- func CopySlice(values []interface{}) []interface{}
- func Flatten(value interface{}) []interface{}
- func GetIF(condition bool, value interface{}, defaultValue interface{}) interface{}
- func IntHave(source []int, one int) bool
- func IntPtr(value int) *int
- func IntVal(v *int, defaults ...int) int
- func InterfaceUnique(slice []interface{}) []interface{}
- func IsNil(value interface{}) bool
- func IsNumeric(v interface{}) bool
- func MapFilp(v interface{}) (interface{}, bool)
- func PanicIF(v interface{})
- func Println(v interface{})
- func StringHave(source []string, one string) bool
- func StringPtr(value string) *string
- func StringUnique(slice []string) []string
- func StringVal(v *string, defaults ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopySlice ¶ added in v0.5.1
func CopySlice(values []interface{}) []interface{}
CopySlice copy slice struct
func Flatten ¶ added in v0.5.1
func Flatten(value interface{}) []interface{}
Flatten flattens a multi-dimensional array into a single level array:
func GetIF ¶
func GetIF(condition bool, value interface{}, defaultValue interface{}) interface{}
GetIF if the condition is true return the given value, else return the default value
func InterfaceUnique ¶ added in v0.5.1
func InterfaceUnique(slice []interface{}) []interface{}
InterfaceUnique Returns unique items in a slice
func IsNumeric ¶ added in v0.5.1
func IsNumeric(v interface{}) bool
IsNumeric determine if the given value is numberic
func PanicIF ¶
func PanicIF(v interface{})
PanicIF if the given value is not nil then panic, else do nothing
func StringHave ¶ added in v0.0.3
StringHave Contains method for a slice
func StringUnique ¶ added in v0.5.1
StringUnique Returns unique items in a slice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.