package
0.0.0-20240615145052-ba0f66b9e969
Repository: https://github.com/madflojo/mockitout.git
Documentation: pkg.go.dev

# Functions

NewVariableInstance creates a new variable instance with the request, response writer and params.
RandomWrapper converts a function that returns any value to a RandomFunc type.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Variable prefixes.
VariableRegexp is the regular expression to match variables with the format {{ variable }}.

# Variables

ErrEnvironmentVariable is returned when the environment variable is not found.
ErrInvalidJsonBody is returned when the json body is unable to be parsed.
ErrInvalidJsonVar is returned when the json variable is not found.
ErrRandomVariable is returned when the random variable is not found.
ErrInvalidVariableFormat is returned when the variable format is invalid (e.g.
ErrInvalidVariablePrefix is returned when the variable prefix is invalid.
ErrNoBody is returned when no body is found.
RandomMap is a map of the random variables and the RandomFuncs that generate them.

# Type aliases

RandomFunc is a function type that returns a random string on call.