Documentation ¶
Index ¶
- 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 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 GetDateFormat(timestamp int64, format string) string
- func GetDateMH(timestamp int64) string
- func GetDateParse(dates string) int64
- 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 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 Md5(s string) string
- 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 DoImageHandler ¶
http://studygolang.com/articles/3375 http://studygolang.com/articles/4307 http://studygolang.com/articles/2581 http://studygolang.com/articles/2453
func GetAvatarSource ¶
func GetBrowser ¶
func GetCheckworkType ¶
func GetDateFormat ¶
func GetDateParse ¶
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 GetResumeStatus ¶
func GetTaskStatus ¶
func GetTaskType ¶
func GetTestStatus ¶
func GetTimeParse ¶
func GetWorkYear ¶
func HTMLEncode ¶
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.
Click to show internal directories.
Click to hide internal directories.