qrcode

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExtJPG = ".jpg"
	ExtPNG = ".png"
	ExtGIF = ".gif"
	ExtBMP = ".bmp"
)

支持四种图片二维码生成

Variables

This section is empty.

Functions

This section is empty.

Types

type MetaInfo

type MetaInfo struct {
	Content string
	Level   qr.ErrorCorrectionLevel
	Mode    qr.Encoding
	Width   int
	Height  int
	Ext     string
}

元信息

func (*MetaInfo) Generate

func (sf *MetaInfo) Generate() (barcode.Barcode, error)

func (*MetaInfo) GenerateToBytes

func (sf *MetaInfo) GenerateToBytes() ([]byte, string, error)

func (*MetaInfo) GenerateToFile

func (sf *MetaInfo) GenerateToFile(path string) (string, error)

GenerateToFile generate QR code, return filename

Jump to

Keyboard shortcuts

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