assert

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(b bool, msg string)

func ChanNotNil

func ChanNotNil[E any](c chan E, name string) chan E

func IsNil

func IsNil[V any](obj V, name string) V

func IsZero

func IsZero[V any](obj V, name string) V

func MapNotNil

func MapNotNil[K comparable, V any](m map[K]V, name string) map[K]V

func Must

func Must[V any](v V, err error) V

func MustEmpty

func MustEmpty[V any](obj V, name string) V

func MustSuccess

func MustSuccess(err error)

func NotEmpty

func NotEmpty[V any](obj V, name string) V

func NotNil

func NotNil[V any](obj V, name string) V

func NotZero

func NotZero[V any](obj V, name string) V

func PtrIsNil

func PtrIsNil[V any](ptr *V, name string) *V

func PtrNotNil

func PtrNotNil[V any](ptr *V, name string) *V

func SliceNotNil

func SliceNotNil[E any](slice []E, name string) []E

Types

This section is empty.

Jump to

Keyboard shortcuts

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