Documentation ¶
Index ¶
- func IfThenElse(condition bool, t interface{}, e interface{}) interface{}
- func IfThenElseInt(condition bool, t int, e int) int
- func IfThenElseString(condition bool, t string, e string) string
- func SliceUniqueInt(a []int) []int
- func SliceUniqueString(a []string) []string
- func StringSliceContains(s []string, v string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IfThenElse ¶
func IfThenElse(condition bool, t interface{}, e interface{}) interface{}
IfThenElse is a wrapper for the if condition.
func IfThenElseInt ¶
IfThenElseInt is a wrapper for the if condition.
func IfThenElseString ¶
IfThenElseString is a wrapper for the if condition.
func SliceUniqueInt ¶
SliceUniqueInt removes duplicates from an int slice.
func SliceUniqueString ¶
SliceUniqueString removes duplicates from a string slice.
func StringSliceContains ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.