condition

package
v0.0.0-...-487cccc Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Choice

func Choice[T any](cond bool, tv, fv T) T

func Lazy

func Lazy[T any](cond bool, v T, onFalse func() T) T

Lazy returns trueValue if condition is true, otherwise it returns the result of falseValue.

Types

This section is empty.

Jump to

Keyboard shortcuts

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