Documentation ¶
Index ¶
- type Regx
- func (r *Regx) IsChinaMobileString(str string) bool
- func (r *Regx) IsChineseChar(str string) bool
- func (r *Regx) IsMailString(str string) bool
- func (r *Regx) IsNicknameString(str string) bool
- func (r *Regx) IsPasswordString(str string) bool
- func (r *Regx) IsUserNameString(str string) bool
- func (r *Regx) Struct2Map(obj interface{}) map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Regx ¶
type Regx struct { }
Regx is tool to validate some data
func (*Regx) IsChinaMobileString ¶
IsChinaMobileString was used for check chinese mobile macth Some methods existing, use that
func (*Regx) IsChineseChar ¶
IsChineseChar to case if string in range in chinese unicode 检验是否为合法的文
func (*Regx) IsMailString ¶
IsMailString is defined to check a string is email str is the target string check for
func (*Regx) IsNicknameString ¶
IsNicknameString defined to validate a string is in nick name creation rules 昵称不校验长度
func (*Regx) IsPasswordString ¶
IsPasswordString is defined to check string is valid for password creation
func (*Regx) IsUserNameString ¶
IsUserNameString defined to validate a string is in username name creation rules 用户名长度不得低于3
func (*Regx) Struct2Map ¶
Struct2Map is defined to transform a struct to string map
Click to show internal directories.
Click to hide internal directories.