qrcode

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var F, E, W, I, D, T log.LevelPrinter = log.GetLogPrinterSet(subsystem)

Functions

func Encode

func Encode(data string, version int, level ECLevel, moduleSize int) (image.Image, error)

Types

type ECLevel

type ECLevel int
const (
	ECLevelL ECLevel = 1 << iota
	ECLevelM ECLevel = 1 << iota
	ECLevelQ ECLevel = 1 << iota
	ECLevelH ECLevel = 1 << iota
)

type Qrcode

type Qrcode struct {
	Version int     // qrcode version 1-40 (0:auto)
	Level   ECLevel // error correction Level (0:auto)

	ModuleSize     int // module size (default 1)
	QuietZoneWidth int // quiet zone width
	// contains filtered or unexported fields
}

func (*Qrcode) Encode

func (qr *Qrcode) Encode() (image.Image, error)

Jump to

Keyboard shortcuts

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