Documentation ¶
Index ¶
- Constants
- func FastBuildFileName(fileName string, filePostfix string) string
- func FastBuildString(str ...string) string
- func GenToken(issuer string, expireHour int, user *model.User) (string, error)
- func GetFileMD5(filePath string) (string, error)
- func SendConfirmMessage(targetMailBox string, code string) error
- func SplitFilename(str string) (filename string, extend string)
- func VerifyEmailFormat(email string) bool
- type MyClaims
Constants ¶
View Source
const (
// DefaultTimeTemplate used build time str
DefaultTimeTemplate = "2006-01-02 15:15:15"
)
Variables ¶
This section is empty.
Functions ¶
func FastBuildFileName ¶
func FastBuildString ¶
func SendConfirmMessage ¶
SendConfirmMessage send confirm code to target mailbox, this func will return err when send email exceed 5 second or connect send email web err
func SplitFilename ¶
splitFilename split file.filename to filename and extend name
func VerifyEmailFormat ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.