Documentation ¶
Index ¶
- func All(conditions ...bool) bool
- func Any(conditions ...bool) bool
- func HasLetter(s string) bool
- func HasNumber(s string) bool
- func HasZeroValue(values ...interface{}) bool
- func Quaternary(condition1, condition2 bool, both, cond1, cond2, neither interface{}) interface{}
- func Ternary(condition bool, a, b interface{}) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasZeroValue ¶
func HasZeroValue(values ...interface{}) bool
HasZeroValue ... Check if any value is the zero value of its type (e.g. nil, numeric 0, empty string) note: if value is invalid, it is regarded as zero
func Quaternary ¶
func Quaternary(condition1, condition2 bool, both, cond1, cond2, neither interface{}) interface{}
Quaternary ... Return one result of: both conditions satisfy, cond1 satisfy, cond2 satisfy, neither satisfy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.