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 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
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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.