validator

package
v0.0.0-...-c53e812 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONValidator

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

func NewJSONValidator

func NewJSONValidator() *JSONValidator

func (JSONValidator) Validate

func (j JSONValidator) Validate(data interface{}) error

validates the given struct as with the rules defined by https://godoc.org/github.com/go-playground/validator

Jump to

Keyboard shortcuts

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