package
Version:
v1.10.6
Opens a new window with list of versions in this module.
Published: Nov 7, 2019
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package ops contains helper operators.
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.