Help us shape the future of Go! Take the 2026 Go Developer Survey

ternary

package module
v0.0.0-...-7f3300b Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

README

ternary

Ternary operator function for golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Byte

func Byte(condition bool, trueVal, falseVal byte) byte

func Float32

func Float32(condition bool, trueVal, falseVal float32) float32

func Float64

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

func If

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

func Int

func Int(condition bool, trueVal, falseVal int) int

func Str

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

func Uint

func Uint(condition bool, trueVal, falseVal uint) uint

Types

This section is empty.

Jump to

Keyboard shortcuts

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