check

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 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 NonNegativeInt32Config added in v1.3.0

func NonNegativeInt32Config(n int) error

func NonNegativeInt64Config added in v1.3.0

func NonNegativeInt64Config(n int64) 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