validation

package
v0.0.0-...-466853b Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddError

func AddError(verr error, name string, err error) error

AddError adds an error under the given name.

func IsError

func IsError(err error) bool

IsError tells if the given error is a validation error.

func LastError

func LastError(err error, name string) error

LastError returns the last error for the specified field.

func Validate

func Validate(s interface{}) error

Validate validates and saves all the govalidator errors in a ValidatorError.

Types

This section is empty.

Jump to

Keyboard shortcuts

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