Documentation ¶
Index ¶
- func Assert(b bool, msg string)
- func ChanNotNil[E any](c chan E, name string) chan E
- func IsNil[V any](obj V, name string) V
- func IsZero[V any](obj V, name string) V
- func MapNotNil[K comparable, V any](m map[K]V, name string) map[K]V
- func Must[V any](v V, err error) V
- func MustEmpty[V any](obj V, name string) V
- func MustSuccess(err error)
- func NotEmpty[V any](obj V, name string) V
- func NotNil[V any](obj V, name string) V
- func NotZero[V any](obj V, name string) V
- func PtrIsNil[V any](ptr *V, name string) *V
- func PtrNotNil[V any](ptr *V, name string) *V
- func SliceNotNil[E any](slice []E, name string) []E
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChanNotNil ¶
func MapNotNil ¶
func MapNotNil[K comparable, V any](m map[K]V, name string) map[K]V
func MustSuccess ¶
func MustSuccess(err error)
func SliceNotNil ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.