helpers

package
v0.0.0-...-c605425 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentTime

func GetCurrentTime() time.Time

func MatchEmail

func MatchEmail(email string) bool

正则匹配邮箱

func MatchTelephone

func MatchTelephone(phone string) bool

正则匹配手机电话号码

func Md5

func Md5(source string) string

计算字符串的md5值

func PathExists

func PathExists(path string) (bool, error)

func Truncate

func Truncate(s string, n int) string

func UUID

func UUID() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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