Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateValidationResponse ¶
CreateValidationResponse is a helper function that creates a http response using the a map of validation errors.
func GetEnv ¶
GetEnv attempts to retrieve env variable from k being the key or returns d being the default value.
func ValidateInputs ¶
ValidateInputs uses validator on interface to check each validation rule. If any fail it will then run through each and return a custom error message depending on which field was wrong.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.