Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Condition ¶ added in v0.16.0
type Condition[T any] interface { // Else returns the value if the condition is true, ifFalse otherwise Else(ifFalse T) T // ElseF returns the value if the condition is true, ifFalse() otherwise ElseF(ifFalse func() T) T // ElseIf returns the same condition if the condition is true, ifFalse otherwise ElseIf(cond bool, ifFalse T) Condition[T] // ElseIfF returns the same condition if the condition is true, ifFalse() otherwise ElseIfF(cond bool, ifFalse func() T) Condition[T] }
Condition is a conditional statement that can be chained with else-if statements
Click to show internal directories.
Click to hide internal directories.