validator

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Validate is an alias for go-playground/validator
	Validate *validation.Validate
)

Functions

This section is empty.

Types

type ErrMap

type ErrMap struct {
	Message       string              `json:"message"`
	InvalidFields []map[string]string `json:"invalidFields"`
}

ErrMap describes the error information in the format for the end user.

func NewInvalidErrMap

func NewInvalidErrMap(err error) *ErrMap

NewInvalidErrMap returns rich error message.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL