Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultIfNil ¶
func DefaultIfNil(value interface{}, defaultValue interface{}) interface{}
DefaultIfNil checks if the value is nil, if true returns the default value otherwise the original
func FirstNonNil ¶
func FirstNonNil(values ...interface{}) interface{}
FirstNonNil returns the first non nil parameter
func IfThen ¶
func IfThen(condition bool, a interface{}) interface{}
IfThen evaluates a condition, if true returns the parameters otherwise nil
func IfThenElse ¶
func IfThenElse(condition bool, a interface{}, b interface{}) interface{}
IfThenElse evaluates a condition, if true returns the first parameter otherwise the second
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.