Documentation
¶
Overview ¶
Package check provides utilities for checking the values of variables against common conditions returning specific error types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InRange ¶
InRange returns an OutOfRangeError if !(min <= actual <= max). InRange panics if max < min or if min or max are NaN.
Types ¶
type OutOfRangeError ¶
type OutOfRangeError string
OutOfRangeError represents an error that occurred when a value was outside an expected range.
func (OutOfRangeError) Error ¶
func (o OutOfRangeError) Error() string
Click to show internal directories.
Click to hide internal directories.