validation

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsChinaMobile

func IsChinaMobile(mobile string) bool

func IsEmpty

func IsEmpty(i interface{}) bool

func IsHaveEmpty

func IsHaveEmpty(args ...interface{}) bool

Types

type Validation

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

func (*Validation) ErrMsg

func (this *Validation) ErrMsg() string

func (*Validation) IsInt

func (this *Validation) IsInt(req string) int

检查是否是int

func (*Validation) IsPass

func (this *Validation) IsPass() bool

func (*Validation) IsString

func (this *Validation) IsString(req string) string

检查是否是空字符串

Jump to

Keyboard shortcuts

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