ternary

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func If

func If(con bool, a, b interface{}) interface{}

If returns a if con is true, b otherwise

func IfNotEmptyOr

func IfNotEmptyOr(a, b string) string

IfNotEmptyOr returns a if not empty, otherwise b

Types

This section is empty.

Jump to

Keyboard shortcuts

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