Documentation ¶
Overview ¶
Package get provides conditional expression builders
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func If ¶
If builds a head of getter function call by condition. Looks like val := get.If(condition, getterFuncOnTrue).Else(defaltVal) tha can be rewrited by:
var val type if condtion { val = getterFuncOnTrue() } else { val = defaltVal }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.