qrcode

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 6 Imported by: 0

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