Documentation
¶
Overview ¶
Package arity is a micro-package for providing the Arity type, which is used to identify whether the number of arguments being provided to an invocation is valid.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadArity = errors.New("arity")
ErrBadArity is an error that is returned when the arity of a function invocation is incorrect.
Functions ¶
This section is empty.
Types ¶
type Arity ¶
Arity is an interface that checks the arity of function invocations.
func ClosedRange ¶
ClosedRange returns an Arity that checks for a range of arguments.
Click to show internal directories.
Click to hide internal directories.