condexpr

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any[T any](expr bool, a, b T) T

Any 若expr成立,则返回a;否则返回b。

func Float32

func Float32(expr bool, a, b float32) float32

Float32 若expr成立,则返回a;否则返回b。

func Float64

func Float64(expr bool, a, b float64) float64

Float64 若expr成立,则返回a;否则返回b。

func Int

func Int(expr bool, a, b int) int

Int 若expr成立,则返回a;否则返回b。

func Int8

func Int8(expr bool, a, b int8) int8

Int8 若expr成立,则返回a;否则返回b。

func Int16

func Int16(expr bool, a, b int16) int16

Int16 若expr成立,则返回a;否则返回b。

func Int32

func Int32(expr bool, a, b int32) int32

Int32 若expr成立,则返回a;否则返回b。

func Int64

func Int64(expr bool, a, b int64) int64

Int64 若expr成立,则返回a;否则返回b。

func Str

func Str(expr bool, a, b string) string

Str 若expr成立,则返回a;否则返回b。

func Uint

func Uint(expr bool, a, b uint) uint

Uint 若expr成立,则返回a;否则返回b。

func Uint8

func Uint8(expr bool, a, b uint8) uint8

Uint8 若expr成立,则返回a;否则返回b。

func Uint16

func Uint16(expr bool, a, b uint16) uint16

Uint16 若expr成立,则返回a;否则返回b。

func Uint32

func Uint32(expr bool, a, b uint32) uint32

Uint32 若expr成立,则返回a;否则返回b。

func Uint64

func Uint64(expr bool, a, b uint64) uint64

Uint64 若expr成立,则返回a;否则返回b。

Types

This section is empty.

Jump to

Keyboard shortcuts

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