Documentation ¶
Index ¶
- Variables
- func CreateFullPathFileName(fullPathFileName string) bool
- func CreateQRCodeFile(content string, fullPathFileName string) bool
- func DecodeBase64(str string) (dcs string)
- func EncodeBase64(str string) (ecs string)
- func GetDay() (date string)
- func GetHour() (date string)
- func GetHourMinuteSecond() (date string)
- func GetHourMinuteSecondDifference(t1String string, t2String string) (date string)
- func GetHoursDifference(t1String string, t2String string) (date string)
- func GetMinute() (date string)
- func GetMinutesDifference(t1String string, t2String string) (date string)
- func GetMonth() (date string)
- func GetSecond() (date string)
- func GetSecondsDifference(t1String string, t2String string) (date string)
- func GetYear() (date string)
- func GetYearMonthDay() (date string)
- func GetYearMonthDayHourMinuteSecond() (date string)
- func HMACAndMD5v1(key string, s string) (r string)
- func HMACAndMD5v2(key string, s string) (r string)
- func HMACAndSHA1v1(key string, s string) (r string)
- func HMACAndSHA1v2(key string, s string) (r string)
- func MD5v1(s string) (r string)
- func MD5v2(s string) (r string)
- func MD5v3(s string) (r string)
- func SHA1v1(s string) (r string)
- func SHA1v2(s string) (r string)
- func SHA1v3(s string) (r string)
- func SendHTMLEMail(to string, subject string, text string) (err error)
- func SendTextEMail(to string, subject string, text string) (err error)
- func UUIDv1() string
- func UUIDv2() string
- func UUIDv3() string
- func UUIDv4() string
- func UUIDv5() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // FormatYear 年 FormatYear = "2006" // FormatMonth 月 FormatMonth = "01" // FormatDay 日 FormatDay = "02" // FormatHour 时 FormatHour = "15" // FormatMinute 分 FormatMinute = "04" // FormatSecond 秒 FormatSecond = "05" // FormatYearMonthDay 年月日 FormatYearMonthDay = "2006-01-02" // FormatHourMinuteSecond 时分秒 FormatHourMinuteSecond = "15:04:05" // FormatYearMonthDayHourMinuteSecond 年月日时分秒 FormatYearMonthDayHourMinuteSecond = "2006-01-02 15:04:05" )
View Source
var HTMLEMailTemplate = `` /* 428-byte string literal not displayed */
HTMLEMailTemplate 超文本标记邮件模版
Functions ¶
func CreateFullPathFileName ¶
CreateFullPathFileName 创建全路径文件 成功返回true,失败返回false
func CreateQRCodeFile ¶
CreateQRCodeFile 创建二维码,成功返回true,失败返回false
func GetHourMinuteSecond ¶
func GetHourMinuteSecond() (date string)
GetHourMinuteSecond 获取时分秒,输出格式“15:04:05”
func GetHourMinuteSecondDifference ¶
GetHourMinuteSecondDifference 获取时分秒差,输出格式“1时1分1秒”
func GetHoursDifference ¶
GetHoursDifference 获取时差,输出格式“1”时
func GetMinutesDifference ¶
GetMinutesDifference 获取分差,输出格式“1”分
func GetSecondsDifference ¶
GetSecondsDifference 获取秒差,输出格式“1”秒
func GetYearMonthDayHourMinuteSecond ¶
func GetYearMonthDayHourMinuteSecond() (date string)
GetYearMonthDayHourMinuteSecond 获取年月日时分秒,输出格式“2006-01-02 15:04:05”
func HMACAndSHA1v1 ¶
HMACAndSHA1v1 HMAC(SHA1)生成方式1
func HMACAndSHA1v2 ¶
HMACAndSHA1v2 HMAC(SHA1)生成方式2
func SendHTMLEMail ¶
SendHTMLEMail 发送超文本标记邮件
func SendTextEMail ¶
SendTextEMail 发送文本邮件
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.