Documentation
¶
Index ¶
- func Any[T any](expr bool, a, b T) T
- func Float32(expr bool, a, b float32) float32
- func Float64(expr bool, a, b float64) float64
- func Int(expr bool, a, b int) int
- func Int8(expr bool, a, b int8) int8
- func Int16(expr bool, a, b int16) int16
- func Int32(expr bool, a, b int32) int32
- func Int64(expr bool, a, b int64) int64
- func Str(expr bool, a, b string) string
- func Uint(expr bool, a, b uint) uint
- func Uint8(expr bool, a, b uint8) uint8
- func Uint16(expr bool, a, b uint16) uint16
- func Uint32(expr bool, a, b uint32) uint32
- func Uint64(expr bool, a, b uint64) uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Any ¶
Any performs conditional selection on generic types Returns a if expr evaluates to true, otherwise returns b
func Float32 ¶
Float32 performs conditional selection on float32 type Returns a if expr evaluates to true, otherwise returns b
func Float64 ¶
Float64 performs conditional selection on float64 type Returns a if expr evaluates to true, otherwise returns b
func Int ¶
Int performs conditional selection on int type Returns a if expr evaluates to true, otherwise returns b
func Int8 ¶
Int8 performs conditional selection on int8 type Returns a if expr evaluates to true, otherwise returns b
func Int16 ¶
Int16 performs conditional selection on int16 type Returns a if expr evaluates to true, otherwise returns b
func Int32 ¶
Int32 performs conditional selection on int32 type Returns a if expr evaluates to true, otherwise returns b
func Int64 ¶
Int64 performs conditional selection on int64 type Returns a if expr evaluates to true, otherwise returns b
func Str ¶
Str performs conditional selection on string type Returns a if expr evaluates to true, otherwise returns b
func Uint ¶
Uint performs conditional selection on uint type Returns a if expr evaluates to true, otherwise returns b
func Uint8 ¶
Uint8 performs conditional selection on uint8 type Returns a if expr evaluates to true, otherwise returns b
func Uint16 ¶
Uint16 performs conditional selection on uint16 type Returns a if expr evaluates to true, otherwise returns b
Types ¶
This section is empty.