objects

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNil

func IsNil[T any](value T) bool

IsNil returns true if the given optional struct is not set.

func RequireNonNil

func RequireNonNil[T any](value T) T

RequireNonNil returns the value of the given optional struct, or panics if the value is not set.

func RequireNonNilM added in v1.1.5

func RequireNonNilM[T any](value T, message string) T

RequireNonNilM returns the value of the given optional struct, or panics if the value is not set with the given message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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