Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultIfNil ¶
func DefaultIfNil(value interface{}, defaultValue interface{}) interface{}
If the value is not nil, return the value, otherwise return the default value
func IfThen ¶
func IfThen(condition bool, a interface{}) interface{}
If the condition is true, return the first argument, otherwise return nil.
func IfThenElse ¶
func IfThenElse(condition bool, a interface{}, b interface{}) interface{}
If the condition is true, return a, otherwise return b.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.