qrcode

package
v0.13.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QrCode

type QrCode struct {
	Cotent   string // 二维码内容
	FilePath string // 二维码保存路径

	Margin int // 外边距大小
}

func New

func New(content, filePath string, options ...QrCodeOption) *QrCode

func (*QrCode) Create

func (q *QrCode) Create() error

Create 生成二维码

type QrCodeOption

type QrCodeOption func(q *QrCode)

func WithMargin

func WithMargin(margin int) QrCodeOption

WithMargin 设置外边距大小

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL