internal

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERR_OUT_OF_RANGE              = "out of range"
	ERR_NON_NEGATIVE_DURATION     = "should be a non-negative time.Duation"
	ERR_NON_NEGATIVE_INTENGER     = "should be a non-negative integer"
	ERR_NON_NEGATIVE_NUMBER       = "should be a non-negative number"
	ERR_NON_NIL                   = "should be nil"
	ERR_NON_ZERO                  = "should not be zero"
	ERR_NON_UTC                   = "should be a UTC time"
	ERR_NAN_OR_INFINITY           = "cannot be -inf, +inf or NaN"
	ERR_NIL                       = "cannot be nil"
	ERR_EMPTY_ARRAY               = "cannot be an empty array"
	ERR_EMPTY_STRING              = "cannot be an empty string"
	ERR_NOT_ARRAY                 = "should be an array"
	ERR_INVALID_CAST_TYPE         = "cannot cast '%T' to '%T'"
	ERR_INVALID_DURATION          = "specified time.Duration %s is invalid"
	ERR_INVALID_INTEGER           = "specified integer %d is invalid"
	ERR_INVALID_FLOAT             = "specified number %v is invalid"
	ERR_INVALID_NUMBER            = "specified number %q is invalid"
	ERR_INVALID_STRING            = "specified string %q is invalid"
	ERR_INVALID_VALUE             = "specified value %v is invalid"
	ERR_INVALID_IP_ADDR           = "specified ip address %v is invalid"
	ERR_INVALID_TIME              = "specified time %v is invalid"
	ERR_STRING_TOO_LONG           = "specified string is too long"
	ERR_STRING_TOO_SHORT          = "specified string is too short"
	ERR_UNSUPPORTED_CAST_STRING   = "cannot convert to string from %#v"
	ERR_UNSUPPORTED_CAST_UINT     = "cannot convert to uint from %#v"
	ERR_UNSUPPORTED_CAST_INT      = "cannot convert to int from %#v"
	ERR_UNSUPPORTED_CAST_FLOAT    = "cannot convert to float from %#v"
	ERR_UNSUPPORTED_CAST_IP_ADDR  = "cannot convert to net.IP from %T"
	ERR_UNSUPPORTED_CAST_TIME     = "cannot convert to time.Time from %T"
	ERR_UNSUPPORTED_CAST_DURATION = "cannot convert to time.Duration from %T"
	ERR_INVALID_REGEX_PATTERN     = "specified reguler expression pattern %q is invalid"
)

Reason

Variables

This section is empty.

Functions

func IsInfinity

func IsInfinity(v float64) bool

func IsKindNumeric added in v0.2.1

func IsKindNumeric(k reflect.Kind) bool

func IsNan

func IsNan(v float64) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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