Documentation ¶
Overview ¶
Package utils @Description:
Index ¶
- func CheckQuestionDB() bool
- func CheckUserCookie(cookies []*http.Cookie) (bool, error)
- func DownloadDbFile()
- func FileIsExist(path string) bool
- func GetAbout() string
- func GetClient() *req.Client
- func KillOnWin(pid int)
- func Restart()
- func Stamp2Str(stamp int64) string
- func Stamp2Time(stamp int64) time.Time
- func Str2Time(formatTimeStr string) time.Time
- func StrMd5(str string) (retMd5 string)
- func Time2Stamp() int64
- func Time2Str() string
- type Bar
- type LogWriter
- type MyLog
- func (m *MyLog) Debug(v ...interface{})
- func (m MyLog) Debugf(format string, v ...interface{})
- func (m *MyLog) Error(v ...interface{})
- func (m MyLog) Errorf(format string, v ...interface{})
- func (m *MyLog) Info(v ...interface{})
- func (m *MyLog) Infof(format string, v ...interface{})
- func (m *MyLog) IsShowSQL() bool
- func (m *MyLog) Level() log2.LogLevel
- func (m *MyLog) SetLevel(l log2.LogLevel)
- func (m *MyLog) ShowSQL(show ...bool)
- func (m *MyLog) Warn(v ...interface{})
- func (m MyLog) Warnf(format string, v ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckQuestionDB ¶ added in v1.0.35
func CheckQuestionDB() bool
CheckQuestionDB *
- @Description: 检查数据库文件完整性
- @param user
- @return bool
func CheckUserCookie ¶ added in v1.0.33
CheckUserCookie *
- @Description: 获取用户成绩
- @param user
- @return bool
func DownloadDbFile ¶ added in v1.0.35
func DownloadDbFile()
Types ¶
type Bar ¶
func (*Bar) NewOptionWithGraph ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.