validator

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(x interface{}) error

Types

type Interface

type Interface interface {
	Validate() error
}

type ValidationError

type ValidationError struct {
	Problem string
	// contains filtered or unexported fields
}

ValidationError indicates an error with validation.

func (ValidationError) Error

func (e ValidationError) Error() string

func (ValidationError) String

func (c ValidationError) String() string

Jump to

Keyboard shortcuts

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