Documentation
¶
Index ¶
- func CheckDbStatusLevel(data int, data_tips string) string
- func CheckDrStatusLevel(status string) string
- func Decode(data []byte, to interface{}) error
- func DelCache(key string) error
- func DoImageHandler(url string, newdx int)
- func Encode(data interface{}) ([]byte, error)
- func GetAssetImage(Asset_Type int) string
- func GetAvatar(avatar string) string
- func GetAvatarSource(avatar string) string
- func GetBrowser(browser string) string
- func GetCache(key string, to interface{}) error
- func GetCheckworkType(ctype int) string
- func GetDate(timestamp int64) string
- func GetDateDiff(date1 string, date2 string) string
- func GetDateDiffColor(date1 string, date2 string) string
- func GetDateFormat(timestamp int64, format string) string
- func GetDateMH(timestamp int64) string
- func GetDateMHS(timestamp int64) string
- func GetDateParse(dates string) int64
- func GetDbRoleImage(Role string) string
- func GetEdu(edu int) string
- func GetFileSuffix(s string) string
- func GetGuid() string
- func GetLeaveType(ltype int) string
- func GetMessageSubtype(subtype int) string
- func GetMessageType(ctype int) string
- func GetNeedsSource(source int) string
- func GetNeedsStage(stage int) string
- func GetNeedsStatus(status int) string
- func GetOSImage(Asset_Type int) string
- func GetOraInstStatus(status string) string
- func GetOraScreenConnectImage(connect int) string
- func GetOs(os string) string
- func GetResumeStatus(status int) string
- func GetTaskStatus(status int) string
- func GetTaskType(tasktype int) string
- func GetTestStatus(status int) string
- func GetTimeParse(times string) int64
- func GetWorkYear(year int) string
- func HTMLEncode(rs string) string
- func InitCache()
- func LoadImage(path string) (img image.Image, err error)
- func LogAlert(v interface{})
- func LogAlertf(format string, v ...interface{})
- func LogCritical(v interface{})
- func LogCriticalf(format string, v ...interface{})
- func LogDebug(v interface{})
- func LogDebugf(format string, v ...interface{})
- func LogEmergency(v interface{})
- func LogEmergencyf(format string, v ...interface{})
- func LogError(v interface{})
- func LogErrorf(format string, v ...interface{})
- func LogInfo(v interface{})
- func LogInfof(format string, v ...interface{})
- func LogNotice(v interface{})
- func LogNoticef(format string, v ...interface{})
- func LogWarning(v interface{})
- func LogWarningf(format string, v ...interface{})
- func Md5(s string) string
- func Mod(a int, b int) int
- func RandInt64(min, max int64) int64
- func RemoveDuplicatesAndEmpty(a []string) (ret []string)
- func SendMail(to string, subject string, body string) error
- func SetCache(key string, value interface{}, timeout int) error
- func SnowFlakeId() int64
- func Strim(str string) string
- func SubString(s string, pos, length int) string
- func Unicode(rs string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDbStatusLevel ¶
func CheckDrStatusLevel ¶
func DoImageHandler ¶
http://studygolang.com/articles/3375 http://studygolang.com/articles/4307 http://studygolang.com/articles/2581 http://studygolang.com/articles/2453
func GetAssetImage ¶
func GetAvatarSource ¶
func GetBrowser ¶
func GetCheckworkType ¶
func GetDateDiff ¶
func GetDateDiffColor ¶
func GetDateFormat ¶
func GetDateMHS ¶
func GetDateParse ¶
func GetDbRoleImage ¶
func GetFileSuffix ¶
func GetLeaveType ¶
func GetMessageSubtype ¶
11知识评论12相册评论21知识赞22相册赞31请假审批32加班33报销34出差35外出36物品
func GetMessageType ¶
func GetNeedsSource ¶
func GetNeedsStage ¶
func GetNeedsStatus ¶
func GetOSImage ¶
func GetOraInstStatus ¶
func GetResumeStatus ¶
func GetTaskStatus ¶
func GetTaskType ¶
func GetTestStatus ¶
func GetTimeParse ¶
func GetWorkYear ¶
func HTMLEncode ¶
func LogCritical ¶
func LogCritical(v interface{})
func LogCriticalf ¶
func LogCriticalf(format string, v ...interface{})
func LogEmergency ¶
func LogEmergency(v interface{})
func LogEmergencyf ¶
func LogEmergencyf(format string, v ...interface{})
func LogNoticef ¶
func LogNoticef(format string, v ...interface{})
func LogWarning ¶
func LogWarning(v interface{})
func LogWarningf ¶
func LogWarningf(format string, v ...interface{})
func SendMail ¶
*
- to: example@example.com;example1@163.com;example2@sina.com.cn;...
- subject:The subject of mail
- body: The content of mail
func SnowFlakeId ¶
func SnowFlakeId() int64
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.