Documentation ¶
Index ¶
- Variables
- func Base64Decode(str string) (string, error)
- func Base64Encode(str string) string
- func Dangerous(s string) bool
- func IdsInt64(ids string, sep ...string) []int64
- func IdsString(ids []int64, sep ...string) string
- func IsEmpty(str string) bool
- func IsIP(s string) bool
- func IsIdentifier(s string, pattern ...string) bool
- func IsMail(s string) bool
- func IsMatch(s, pattern string) bool
- func IsPhone(s string) bool
- func KeysOfMap(m map[string]string) []string
- func MD5(str string) string
- func MtoL(m map[string]struct{}) []string
- func ParseComma(str string) []string
- func ParseCommaTrim(str string) []string
- func ParseLines(lines string) []string
- func RandDigits(n int) string
- func RandLetters(n int) string
- func Repeat(str string, count int) string
- func Reverse(str string) string
- func ToENSymbol(raw string) string
- func ToLower(str string) string
- func ToTitle(str string) string
- func ToUpper(str string) string
- func TrimStringSlice(raw []string) []string
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 IsIdentifier ¶
func ParseComma ¶
func ParseCommaTrim ¶
func ParseLines ¶
func RandDigits ¶
func RandLetters ¶
func ToENSymbol ¶
func TrimStringSlice ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.