Documentation
¶
Index ¶
- func Base64ToImage(data string, targetDir string, imageName string) (string, error)
- func ImageToBase64(imageUri string, removeImage bool) (string, error)
- func RandColor(maxColor int) (r, g, b, a int)
- func RandPos(width, height int) (x float64, y float64)
- func VerificationCode(conf VerificationCodeConfig) (string, string, error)
- type VerificationCodeConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64ToImage ¶
将 Base64 转换为图片
func ImageToBase64 ¶
图片转Base64
func VerificationCode ¶
func VerificationCode(conf VerificationCodeConfig) (string, string, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.