qrcode

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitset

type Bitset struct {
	// contains filtered or unexported fields
}

func CloneBitset

func CloneBitset(from *Bitset) *Bitset

func NewBitset

func NewBitset(v ...bool) *Bitset

func (*Bitset) Append

func (b *Bitset) Append(other *Bitset) error

func (*Bitset) AppendBools

func (b *Bitset) AppendBools(bits ...bool)

func (*Bitset) AppendByte

func (b *Bitset) AppendByte(value byte, numBits int) error

func (*Bitset) AppendBytes

func (b *Bitset) AppendBytes(data []byte) error

func (*Bitset) AppendNumBools

func (b *Bitset) AppendNumBools(num int, value bool)

func (*Bitset) AppendUint32

func (b *Bitset) AppendUint32(value uint32, numBits int) error

func (*Bitset) At

func (b *Bitset) At(index int) bool

func (*Bitset) ByteAt

func (b *Bitset) ByteAt(index int) byte

func (*Bitset) Len

func (b *Bitset) Len() int

func (*Bitset) Substr

func (b *Bitset) Substr(start, end int) (*Bitset, error)

type QRCode

type QRCode struct {
	Content         string
	ForegroundColor color.Color
	BackgroundColor color.Color
	DisableBorder   bool
	// contains filtered or unexported fields
}

func NewQRCode

func NewQRCode(content string) (*QRCode, error)

func (*QRCode) Base64PNG

func (q *QRCode) Base64PNG(size int) string

func (*QRCode) Bitmap

func (q *QRCode) Bitmap() ([][]bool, error)

func (*QRCode) Image

func (q *QRCode) Image(size int) (image.Image, error)

func (*QRCode) PNG

func (q *QRCode) PNG(size int) ([]byte, error)

func (*QRCode) ToSmallString

func (q *QRCode) ToSmallString(inverse bool) string

Jump to

Keyboard shortcuts

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