Documentation
¶
Index ¶
- func Decode(path string) (content string, err error)
- func EncodeToFile(content, outputImgPath string, options ...standard.ImageOption) error
- func Generate(content string, level qrcode.RecoveryLevel, size int) ([]byte, error)deprecated
- func GenerateWithColor(content string, level qrcode.RecoveryLevel, size int, ...) ([]byte, error)deprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
Decode 解析二维码(仅支持部分图片).
PS: (1) 能解析 yeqown/go-qrcode 生成的二维码. (2) 不能解析 skip2/go-qrcode 生成的二维码.
func EncodeToFile ¶
func EncodeToFile(content, outputImgPath string, options ...standard.ImageOption) error
EncodeToFile 生成二维码图片.
@param content 二维码的内容 @param options 可以指定: (1) logo(放在二维码的中心)
(2) halftone(比较酷炫),可参考 https://github.com/yeqown/go-qrcode 中: example/with-halftone/README.md (3) 尺寸(但单位并非像素) (4) 透明 (5) 前景色、背景色
func GenerateWithColor
deprecated
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.