ops

package
v1.10.6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package ops contains helper operators.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ternary

func Ternary(cond bool, posVal interface{}, negVal interface{}) interface{}

Ternary is the standard ternary operator which returns posVal if the boolean condition is true, otherwise negVal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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