qrcode

package
v1.9.21 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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