Documentation
¶
Index ¶
- func CheckEmailValidity(email string) (matched bool)
- func CheckPhoneValidity(phone string) (matched bool)
- func CheckUsernameValidity(username string) (matched bool)
- func ExecLinuxShell(shell string) (err error)
- func GenerateToken(username string) (token string)
- func GetFileSize(path string) (int64, error)
- func MD5Byte(data []byte) string
- func MD5File(file *os.File) string
- func ModifyFileName(path string, newFileName string) (newPatn string, err error)
- func PathExists(path string) bool
- func Sha1Byte(data []byte) string
- func Sha1File(file *os.File) string
- func Sha1MFile(file multipart.File) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckUsernameValidity ¶
CheckUsernameValidity -
func GenerateToken ¶
GenerateToken - token = md5(username+timestamp+tokenSalt)+timestamp[:]
func ModifyFileName ¶
ModifyFileName -
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.