Documentation ¶
Index ¶
- Variables
- func Base64Decode(str string) (string, error)
- func Base64Encode(str string) string
- func Dangerous(s string) bool
- func GetPatAndTimeFormat(s string) (string, string)
- func IsIdentifier(s string, pattern ...string) bool
- func IsIp(s string) bool
- func IsMail(s string) bool
- func IsMatch(s, pattern string) bool
- func IsPhone(s string) bool
- func MD5(str string) (string, error)
- func RandDigits(n int) string
- func RandLetters(n int) string
- func Sha256(str string) (string, error)
- func Sha512(str string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var IPReg, _ = regexp.Compile(`^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$`)
View Source
var MailReg, _ = regexp.Compile(`\w[-._\w]*@\w[-._\w]*\.\w+`)
Functions ¶
func Base64Decode ¶
func Base64Encode ¶
func GetPatAndTimeFormat ¶
func IsIdentifier ¶
func RandDigits ¶
func RandLetters ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.