Documentation ¶
Index ¶
- Constants
- func Context(dur ...time.Duration) (context.Context, context.CancelFunc)
- func ConvertFromLowerShortUrl(str string) int64
- func ConvertFromShortUrl(str string) int64
- func ConvertToLowerShortUrl(id int64) string
- func ConvertToShortUrl(id int64) string
- func GenerateNumber(min, max int) int
- func GenerateString(length int) string
- func GenerateUUID() string
- func GenerateUniqueString(length int) string
- func Hmac(str, key string) string
- func Load()
- func MaskEmail(email string) string
- func MaskMobile(mobile string) string
- func MaskString(input string) string
- func Md5(str string) string
- func MustString(input *string) string
- func Pinyin(input string) []string
- func PureMobile(mobile string) string
- func ResolveRegexString(text string) string
- func Reverse(s string) (result string)
- func Segment(keywords string) []string
- func Sha1(str string) string
- func ShaPass(pass string) string
- func ValidateEmail(e string) bool
- func ValidateMobile(e string) bool
- func ValidateName(name string) bool
- func ValidatePassword(password string) bool
- type Type
Constants ¶
View Source
const Date = "2006-01-02"
View Source
const DateTime = "2006-01-02 15:04:05"
View Source
const MobileJoiner = ":"
View Source
const WechatUnionPrefix = "wechat:"
Variables ¶
This section is empty.
Functions ¶
func ConvertFromShortUrl ¶
func GenerateNumber ¶
func GenerateString ¶
func GenerateUUID ¶
func GenerateUUID() string
func GenerateUniqueString ¶
func MaskMobile ¶
func MaskString ¶
func MustString ¶
func PureMobile ¶
func ResolveRegexString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.