Documentation ¶ Index ¶ func Url(text string, isUrl bool) string type QrCode func NewQrCode(text string, border ...int) (*QrCode, error) func (qr *QrCode) SaveToBuffer() (*bytes.Buffer, error) func (qr *QrCode) SaveToFile(saveToPath string) error func (qr *QrCode) Text() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Url ¶ func Url(text string, isUrl bool) string Url 生成二维码链接 Types ¶ type QrCode ¶ type QrCode struct { // contains filtered or unexported fields } func NewQrCode ¶ func NewQrCode(text string, border ...int) (*QrCode, error) NewQrCode 创建二维码 func (*QrCode) SaveToBuffer ¶ func (qr *QrCode) SaveToBuffer() (*bytes.Buffer, error) SaveToBuffer 保存到buffer func (*QrCode) SaveToFile ¶ func (qr *QrCode) SaveToFile(saveToPath string) error SaveToFile 保存到文件 func (*QrCode) Text ¶ func (qr *QrCode) Text() string Text 获取二维码内容 Source Files ¶ View all Source files qrcode.go Click to show internal directories. Click to hide internal directories.