ternary

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func If

func If(condition bool, trueVal, falseVal interface{}) interface{}

func IfFloat

func IfFloat(condition bool, trueVal, falseVal float64) float64

func IfInt

func IfInt(condition bool, trueVal, falseVal int64) int64

func IfString

func IfString(condition bool, trueVal, falseVal string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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