nilcheck

package
v1.4.31 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyNotNil

func AnyNotNil(values ...any) bool

AnyNotNil returns true if any given value is not nil.

AnyNotNil(nil, nil) -> false AnyNotNil(nil, 1) -> true

func AreAllNil

func AreAllNil(values ...any) bool

AreAllNil returns true if all given values are nil.

AreAllNil(nil, nil) -> true AreAllNil(nil, 1) -> false

func Nil added in v1.4.23

func Nil(value any) bool

Nil returns true if the given value is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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