Documentation ¶
Index ¶
- func CopyImg(img image.Image) image.Image
- func Draw(img image.Image, r image.Image, x, y, w, h int) image.Image
- func EncodeImg(img image.Image) []byte
- func FindAllString(exp string, str string) []string
- func FindString(exp string, str string) string
- func GetAppname() string
- func GetCurrentDirectory() string
- func IF(condition bool, trueval, falseval interface{}) interface{}
- func ImgToBase64(img image.Image) string
- func ImgToReader(img image.Image) (*bytes.Reader, int64)
- func LoadImg(r io.Reader) (image.Image, string, error)
- func MD5V(str []byte) string
- func MatchEmail(email string) bool
- func MatchPhone(phone string) bool
- func MatchString(exp string, str string) bool
- func Md5v(str []byte) string
- func MkdirIfNotExist(dir string) error
- func RandomString(n int, allowedChars ...rune) string
- func SaveImg(img image.Image, path string, mod string) error
- func SliceStringContains(a []string, b string) bool
- func TrimmingImage(src image.Image, x, y, w, h int) (image.Image, error)
- func Verify(st interface{}) (err error)
- type BaseModel
- type BaseModelV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAllString ¶
func FindString ¶
func GetCurrentDirectory ¶
func GetCurrentDirectory() string
@title createDir @description 获取运行地址 @auth (2020/04/05 20:22) @param path string
func ImgToBase64 ¶
func MatchEmail ¶
func MatchPhone ¶
func MatchString ¶
func RandomString ¶
RandomString returns a random string with a fixed length
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.