condition

package
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2021 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func If

func If(condition bool, t any, f any) any

If return value according condition

func IfBool

func IfBool(condition bool, t bool, f bool) bool

IfBool return value according condition

func IfByte

func IfByte(condition bool, t byte, f byte) byte

IfByte return value according condition

func IfFloat32

func IfFloat32(condition bool, t float32, f float32) float32

IfFloat32 return value according condition

func IfFloat64

func IfFloat64(condition bool, t float64, f float64) float64

IfFloat64 return value according condition

func IfFunction

func IfFunction(condition bool, t function, f function) function

IfFunction return value according condition

func IfInt

func IfInt(condition bool, t int, f int) int

IfInt return value according condition

func IfInt8

func IfInt8(condition bool, t int8, f int8) int8

IfInt8 return value according condition

func IfInt16

func IfInt16(condition bool, t int16, f int16) int16

IfInt16 return value according condition

func IfInt32

func IfInt32(condition bool, t int32, f int32) int32

IfInt32 return value according condition

func IfInt64

func IfInt64(condition bool, t int64, f int64) int64

IfInt64 return value according condition

func IfRune

func IfRune(condition bool, t rune, f rune) rune

IfRune return value according condition

func IfString

func IfString(condition bool, t string, f string) string

IfString return value according condition

func IfUint8

func IfUint8(condition bool, t uint8, f uint8) uint8

IfUint8 return value according condition

func IfUint16

func IfUint16(condition bool, t uint16, f uint16) uint16

IfUint16 return value according condition

func IfUint32

func IfUint32(condition bool, t uint32, f uint32) uint32

IfUint32 return value according condition

func IfUint64

func IfUint64(condition bool, t uint64, f uint64) uint64

IfUint64 return value according condition

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL