Documentation
¶
Index ¶
- func DecodingBinaryToImage(b []byte) (img image.Image, err error)
- func EncodingImageToBase64StrForJpeg(img image.Image, quality int) string
- func EncodingImageToBase64StrForPng(img image.Image) string
- func EncodingImageToBinaryWithJpeg(img image.Image, quality int) (ret []byte)
- func EncodingImageToBinaryWithPng(img image.Image) (ret []byte)
- func GenCaptchaKey(str string) (string, error)
- func GenUniqueId() string
- func GetRandomColorValueByRGBA(cs []color.Color) color.RGBA
- func GetRandomStringValue(s []string) string
- func GetRootDirectory() string
- func Md5ToStr(str string) string
- func ParseHexColorToRGBA(s string) (c color.RGBA, err error)
- func PathExists(path string) (bool, error)
- func RandInt(min, max int) int
- func RandomCreateSimplifyZHCNUnicode() (string, string)
- func RandomCreateZHCNUnicode() (string, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodingBinaryToImage ¶
DecodingBinaryToImage 解码二进制图片
func EncodingImageToBase64StrForJpeg ¶
EncodingImageToBase64StrForJpeg 将普通(JPG,JPEG)图片转为base64字符串
func EncodingImageToBase64StrForPng ¶
EncodingImageToBase64StrForPng 将png格式图片转为base64字符串
func EncodingImageToBinaryWithJpeg ¶
EncodingImageToBinaryWithJpeg 图片编码为二进制(image格式)
func EncodingImageToBinaryWithPng ¶
EncodingImageToBinaryWithPng 图片编码为二进制(png格式)
func GetRandomColorValueByRGBA ¶
GetRandomColorValueByRGBA 从Color列表中随机获取一个颜色的RGBA值
func GetRandomStringValue ¶
GetRandomStringValue 从字符串列表中随机获取一个值
func ParseHexColorToRGBA ¶
ParseHexColorToRGBA 十六进制颜色转为color.RGBA
func RandomCreateSimplifyZHCNUnicode ¶
RandomCreateSimplifyZHCNUnicode 随机生成简化汉字中文Unicode编码及转义字符
func RandomCreateZHCNUnicode ¶
RandomCreateZHCNUnicode 随机生成中文Unicode编码及转义字符
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.