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
Click to show internal directories.
Click to hide internal directories.