Documentation ¶
Overview ¶
基于redis
Index ¶
- Variables
- func FileMd5(url string) string
- func GenRSA(bits int, outputPath string) error
- func HttpsExpireTimestamp(URL string) (timestamp int64, err error)
- func Md5(str string) string
- func NewMailer(host string, port int, username string, password string) mailer
- func NewTree(IDField string, PIDField string) *tree
- func PrintError(msg interface{}, detail ...interface{})
- func PrintInfo(msg interface{}, detail ...interface{})
- func PrintPanic(msg interface{}, detail ...interface{})
- func PrintSuccess(msg interface{}, detail ...interface{})
- func PrintWarning(msg interface{}, detail ...interface{})
- func RandString(len int) string
- type Datetime
- type Print
- type UUID
Constants ¶
This section is empty.
Variables ¶
View Source
var Client redisx.Client
Functions ¶
func HttpsExpireTimestamp ¶
HttpsExpireTimestamp https证书过期时间
func PrintSuccess ¶
func PrintSuccess(msg interface{}, detail ...interface{})
PrintSuccess 打印信息 带行号及颜色
func PrintWarning ¶
func PrintWarning(msg interface{}, detail ...interface{})
PrintWarning 打印信息 带行号及颜色
Types ¶
type Datetime ¶
type Datetime struct {
// contains filtered or unexported fields
}
func (*Datetime) ToDate ¶
ToDate 时间日期格式化显示 format 格式化 Y-m-d H:i:s time 时间戳,0为当前时间戳 timezone 时区,nil为系统默认时区
func (*Datetime) WithTimestamp ¶
WithTimestamp 待转换的时间戳
func (*Datetime) WithTimezone ¶
WithTimezone 相对时区
Click to show internal directories.
Click to hide internal directories.