godock: github.com/sqp/godock/libs/ternary Index | Files

package ternary

import "github.com/sqp/godock/libs/ternary"

Package ternary operators!

Index

Package Files

ternary.go

func Float64 Uses

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

Float64 is a ternary operator for int.

func Int Uses

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

Int is a ternary operator for int.

func Max Uses

func Max(a, b int) int

Max for int.

func Min Uses

func Min(a, b int) int

Min for int.

func String Uses

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

String is a ternary operator for string.

Package ternary is imported by 17 packages. Updated 2016-07-21. Refresh now. Tools for package owners.