Documentation
¶
Overview ¶
Package ternary implement like condition ? trueVal : falseVal
Index ¶
- func If(condition bool, trueVal, falseVal interface{}) interface{}
- func IfFloat(condition bool, trueVal, falseVal float64) float64
- func IfInt(condition bool, trueVal, falseVal int) int
- func IfInt64(condition bool, trueVal, falseVal int64) int64
- func IfString(condition bool, trueVal, falseVal string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func If ¶
func If(condition bool, trueVal, falseVal interface{}) interface{}
If like condition ? trueVal : falseVal
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.