validator

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(New, NewOptions)

Functions

This section is empty.

Types

type CustomValidator

type CustomValidator struct {
	// contains filtered or unexported fields
}

func New

func New(o *Options) (*CustomValidator, error)

func (*CustomValidator) Validate

func (v *CustomValidator) Validate(i interface{}) error

type Options

type Options struct {
	// The locale to use for validation messages.
	Locale string
}

Options for the validator.

func NewOptions

func NewOptions(v *viper.Viper) (*Options, error)

NewOptions creates a new set of o for the HTTP server.

Jump to

Keyboard shortcuts

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