Documentation ¶
Index ¶
Constants ¶
View Source
const EXT_JPEG = ".jpeg"
Variables ¶
This section is empty.
Functions ¶
func GetQRCodeFullPath ¶
func GetQRCodeFullPath() string
func GetQRCodeFullURL ¶
func GetQRCodeMD5Name ¶
func GetQRCodePath ¶
func GetQRCodePath() string
Types ¶
type QRCode ¶
type QRCode struct { URL string Width int Height int Ext string Level qr.ErrorCorrectionLevel Mode qr.Encoding }
func (*QRCode) CheckEncode ¶
func (*QRCode) Encode ¶
Encode 1、创建二维码生成路径 2、生成二维码 3、缩放二维码到指定大小 4、新建存放二维码图片的文件 5、将二维码图像以JPEG 4:2:0 的基线格式写入文件
func (*QRCode) GetQRCodeExt ¶
Click to show internal directories.
Click to hide internal directories.