validator

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(model interface{}, form interface{})

Bind a validated form to a model, tag omit to not bind a field

func DefaultValidator

func DefaultValidator(fl validator.FieldLevel) bool

func IsUTFLetterNumeric

func IsUTFLetterNumeric(str string) bool

IsUTFLetterNumeric check if the string contains only unicode letters and numbers. Empty string is valid.

func IsUTFLetterNumericValidator

func IsUTFLetterNumericValidator(fl validator.FieldLevel) bool

IsUTFLetterNumericValidator is an interface to IsUTFLetterNumeric from validator

func ValidateForm

func ValidateForm(form interface{}, mes *msg.Messages)

ValidateForm : Check if a form is valid according to its tags

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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