iif

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

The package is for ternary expression support

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float32

func Float32(condition bool, trueValue, falseValue float32) float32

Float32 returns true or false value

func Float64

func Float64(condition bool, trueValue, falseValue float64) float64

Float64 returns true or false value

func IIfUint

func IIfUint(condition bool, trueValue, falseValue uint) uint

IIfUint returns true or false value

func Int

func Int(condition bool, trueValue, falseValue int) int

Int returns true or false value

func Int16

func Int16(condition bool, trueValue, falseValue int16) int16

Int16 returns true or false value

func Int32

func Int32(condition bool, trueValue, falseValue int32) int32

Int32 returns true or false value

func Int64

func Int64(condition bool, trueValue, falseValue int64) int64

Int64 returns true or false value

func Int8

func Int8(condition bool, trueValue, falseValue int8) int8

Int8 returns true or false value

func Interface

func Interface(condition bool, trueValue, falseValue interface{}) interface{}

Interface returns true or false value

func Rune

func Rune(condition bool, trueValue, falseValue rune) rune

Rune returns true or false value

func String

func String(condition bool, trueValue, falseValue string) string

String returns true or false value

func Uint16

func Uint16(condition bool, trueValue, falseValue uint16) uint16

Uint16 returns true or false value

func Uint32

func Uint32(condition bool, trueValue, falseValue uint32) uint32

Uint32 returns true or false value

func Uint64

func Uint64(condition bool, trueValue, falseValue uint64) uint64

Uint64 returns true or false value

func Uint8

func Uint8(condition bool, trueValue, falseValue uint8) uint8

Uint8 returns true or false value

func Uintptr

func Uintptr(condition bool, trueValue, falseValue uintptr) uintptr

Uintptr returns true or false value

Types

This section is empty.

Jump to

Keyboard shortcuts

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