validation

package
Version: v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option validation option

func WithTranslator

func WithTranslator(trans *ut.Translator) Option

WithTranslator set Translator

func WithUniversalTranslator

func WithUniversalTranslator(uni *ut.UniversalTranslator) Option

WithUniversalTranslator set UniversalTranslator

func WithValidator

func WithValidator(v *validator.Validate) Option

WithValidator set validator

type Validation

type Validation interface {
	ValidateStruct(s interface{}) error
}

Validation interface

func New

func New(opts ...Option) Validation

New Validation object

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL