Documentation ¶
Index ¶
- func CopyFileTo(srcPath, destPath string) error
- func DecodeByteToJpeg(b []byte) (img image.Image, err error)
- func DecodeByteToPng(b []byte) (img image.Image, err error)
- func EncodeJPEGToBase64(img image.Image, quality int) string
- func EncodeJPEGToByte(img image.Image, quality int) (ret []byte)
- func EncodePNGToBase64(img image.Image) string
- func EncodePNGToByte(img image.Image) (ret []byte)
- func GetPWD() string
- func LoadFont(p string) (*truetype.Font, error)
- func LoadJpeg(p string) (image.Image, error)
- func LoadPNG(p string) (image.Image, error)
- func StringToMD5(src string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFileTo ¶
func DecodeByteToJpeg ¶
DecodeByteToJpeg .
func DecodeByteToPng ¶
DecodeByteToPng .
func EncodeJPEGToBase64 ¶
EncodeJPEGToBase64 .
func EncodeJPEGToByte ¶
EncodeJPEGToByte .
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.