control

package
v0.0.0-...-d9922dd Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func If

func If[T any](condition bool, trueVal, falseVal T) T

func IfFunc

func IfFunc[T any](condition bool, trueFunc func() T, falseFunc func() T) T

func IfFuncPair

func IfFuncPair[T1 any, T2 any](condition bool, trueFunc func() (T1, T2), falseFunc func() (T1, T2)) (T1, T2)

func LoopAlways

func LoopAlways(always bool, do func())

func LoopAlwaysReturn

func LoopAlwaysReturn[T any](always bool, do func() T) T

Types

This section is empty.

Jump to

Keyboard shortcuts

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