data

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromJSON

func FromJSON(i interface{}, r io.Reader) error

func NewValidatorFunc added in v1.3.0

func NewValidatorFunc(regex string) validator.Func

func ToJSON

func ToJSON(i interface{}, w io.Writer) error

Types

type Validation added in v1.3.0

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

func NewValidator added in v1.3.0

func NewValidator(validationOptions ...ValidationOption) *Validation

func (*Validation) Validate added in v1.3.0

func (v *Validation) Validate(s interface{}) error

type ValidationOption added in v1.3.0

type ValidationOption struct {
	Name      string
	Operation validator.Func
}

Jump to

Keyboard shortcuts

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