Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func If ¶
If returns ifVal if cond is true, elseVal otherwise. If cond is true, ifVal is returned, elseVal is ignored. If cond is false and elseVal is provided, elseVal is returned. If cond is false and elseVal is not provided, the zero value of T is returned.
func IfF ¶
IfF returns the result of ifFunc if cond is true, the result of elseFunc otherwise. If cond is true, ifFunc is called, elseFunc is ignored. If cond is false and elseFunc is provided, elseFunc is called. If cond is false and elseFunc is not provided, the zero value of T is returned.
Types ¶
Click to show internal directories.
Click to hide internal directories.