validator

package
v0.0.0-...-8984e3b Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2018 License: GPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StructValidator

type StructValidator struct {
	MessagesValidation []map[string]string `json:"messages_validation"`
	ValidationSuccess  bool                `json:"is_valid"`
}

func New

func New() *StructValidator

func (StructValidator) GetMessagesValidation

func (this StructValidator) GetMessagesValidation() []map[string]string

func (StructValidator) IsValid

func (this StructValidator) IsValid() bool

func (*StructValidator) Validate

func (this *StructValidator) Validate(_struct interface{}) (err error)

Jump to

Keyboard shortcuts

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