x

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert[T any](in any, ifFailed T) T

func AssertAsFloat

func AssertAsFloat(in any, ifFailed float64) float64

func AssertAsInt

func AssertAsInt(in any, ifFailed int) int

func AssertPanic

func AssertPanic[T any](in any) T

func Ite

func Ite[T any](conExpr bool, ifTrue, ifFalse T) T

func IteFunc

func IteFunc[T any](conExpr bool, ifTrue, ifFalse func() T) T

func IteFuncElse

func IteFuncElse[T any](conExpr bool, ifTrue T, ifFalse func() T) T

func IteFuncTrue

func IteFuncTrue[T any](conExpr bool, ifTrue func() T, ifFalse T) T

func NotNil

func NotNil(a ...any) bool

func PanicIfNil

func PanicIfNil(a ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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