Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Qrcode ¶
type Qrcode struct {
// contains filtered or unexported fields
}
func New ¶
func New(content string, options ...QrcodeOption) *Qrcode
创建二维码实例
- {content} 二维码内容
- {options} 可选项, 调用 With* 函数可设置
type QrcodeOption ¶
type QrcodeOption func(qr *Qrcode)
func WithCenterImg ¶
func WithCenterImg(pathOrB64str string, w, h uint) QrcodeOption
配置中心图
- {pathOrB64str} 中心图路径或Base64字串
- {w},{h} 中心图宽高,单位/像素
Click to show internal directories.
Click to hide internal directories.