check

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureNonNegativeDuration added in v1.2.0

func EnsureNonNegativeDuration(v *time.Duration, d time.Duration, msg string) error

func Nil

func Nil(arg interface{}) bool

Nil does proper nil check for interface{} values taken from users. See: https://golang.org/doc/faq#nil_error

func NonNegativeInt32

func NonNegativeInt32(n int) (int32, error)

func WithinRangeInt32

func WithinRangeInt32(n, start, end int32) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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