Documentation ¶
Overview ¶
Package edgegriderr is used for parsing validation errors to make them more readable. It formats error(s) in a way, that the return value is one formatted error type, consisting of all the errors that occurred in human-readable form. It is important to provide all the validation errors to the function. Usage example:
error := edgegriderr.ParseValidationErrors(validation.Errors{ "Validation1": validation.Validate(...), "Validation2": validation.Validate(...), })
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseValidationErrors ¶
func ParseValidationErrors(e validation.Errors) error
ParseValidationErrors parses validation errors into easily readable form The output error is formatted with indentations and struct field indexing for collections
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.