ternary

package
v0.0.0-...-0caaa62 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 0 Imported by: 1

Documentation

Overview

Package ternary operators!

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float64

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

Float64 is a ternary operator for int.

func Int

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

Int is a ternary operator for int.

func Max

func Max(a, b int) int

Max for int.

func Min

func Min(a, b int) int

Min for int.

func String

func String(test bool, a, b string) string

String is a ternary operator for string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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