qrcode

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EXT_JPG = ".jpg"
)

Variables

This section is empty.

Functions

func ConsolePrint

func ConsolePrint(qrCode image.Image)

func GetQrCodeFileName

func GetQrCodeFileName(value string) string

Types

type QrCode

type QrCode struct {
	URL    string
	Width  int
	Height int
	Ext    string
	Level  qr.ErrorCorrectionLevel
	Mode   qr.Encoding
}

func NewQrCode

func NewQrCode(url string, width, height int, level qr.ErrorCorrectionLevel, mode qr.Encoding) *QrCode

func (*QrCode) CheckEncode

func (q *QrCode) CheckEncode(path string) bool

func (*QrCode) Encode

func (q *QrCode) Encode(path string) (string, string, error)

func (*QrCode) GetQrCodeExt

func (q *QrCode) GetQrCodeExt() string

Jump to

Keyboard shortcuts

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