Documentation
¶
Index ¶
- func AvatarResize(srcImg image.Image, w, h int, filePath string) error
- func CheckImageType(buff []byte) string
- func CheckTags(tags string) string
- func ContentFmt(db *youdb.DB, input string) string
- func ContentRich(db *youdb.DB, input string) string
- func FetchAvatar(url, save, ua string) error
- func GenerateAvatar(sex, userName string, w, h int, filePath string) error
- func GetImageObj(buff *bytes.Buffer) (image.Image, error)
- func GetImageObj2(buff *bytes.Buffer) (image.Image, error)
- func GetMention(input string, notInclude []string) []string
- func HashFileMD5(filePath string) (string, error)
- func ImageResize(srcImg image.Image, w, h int) *image.NRGBA
- func IsMail(str string) bool
- func IsNickname(str string) bool
- func IsUserName(str string) bool
- func RemoveCharacter(str string) string
- func SliceUniqInt(s []int) []int
- func SliceUniqStr(s []string) []string
- func TimeFmt(tp interface{}, sample string, tz int) string
- func TimeHuman(ts interface{}) string
- type Message
- type SmtpSendMail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckImageType ¶
func FetchAvatar ¶
func GetMention ¶
func HashFileMD5 ¶
func IsNickname ¶
func IsUserName ¶
func RemoveCharacter ¶
func SliceUniqInt ¶
func SliceUniqStr ¶
Types ¶
type Message ¶
type Message struct { To []string From string Subject string Body string User string Type string Massive bool Info string }
func NewHTMLMessage ¶
NewHTMLMessage Create html mail message
type SmtpSendMail ¶
func (*SmtpSendMail) AsyncSendMail ¶
func (s *SmtpSendMail) AsyncSendMail(msg Message)
AsyncSendMail Async Send mail message
Click to show internal directories.
Click to hide internal directories.