Documentation
¶
Overview ¶
The package is for ternary expression support
Index ¶
- func Float32(condition bool, trueValue, falseValue float32) float32
- func Float64(condition bool, trueValue, falseValue float64) float64
- func IIfUint(condition bool, trueValue, falseValue uint) uint
- func Int(condition bool, trueValue, falseValue int) int
- func Int16(condition bool, trueValue, falseValue int16) int16
- func Int32(condition bool, trueValue, falseValue int32) int32
- func Int64(condition bool, trueValue, falseValue int64) int64
- func Int8(condition bool, trueValue, falseValue int8) int8
- func Interface(condition bool, trueValue, falseValue interface{}) interface{}
- func Rune(condition bool, trueValue, falseValue rune) rune
- func String(condition bool, trueValue, falseValue string) string
- func Uint16(condition bool, trueValue, falseValue uint16) uint16
- func Uint32(condition bool, trueValue, falseValue uint32) uint32
- func Uint64(condition bool, trueValue, falseValue uint64) uint64
- func Uint8(condition bool, trueValue, falseValue uint8) uint8
- func Uintptr(condition bool, trueValue, falseValue uintptr) uintptr
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Interface ¶
func Interface(condition bool, trueValue, falseValue interface{}) interface{}
Interface returns true or false value
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.