Versions in this module Expand all Collapse all v2 v2.2.2 Sep 20, 2023 Changes in this version + const EncModeAlphanumeric + const EncModeAuto + const EncModeByte + const EncModeJP + const EncModeNone + const EncModeNumeric + const ErrorCorrectionHighest + const ErrorCorrectionLow + const ErrorCorrectionMedium + const ErrorCorrectionQuart + const IterDirection_COLUMN + const IterDirection_ROW + const QRType_DARK + const QRType_DATA + const QRType_FINDER + const QRType_FORMAT + const QRType_INIT + const QRType_SPLITTER + const QRType_TIMING + const QRType_VERSION + var ErrorOutRangeOfH = errors.New("out of range of height") + var ErrorOutRangeOfW = errors.New("out of range of width") + var QRValue_DARK_V0 = qrvalue(QRType_DARK) + var QRValue_DARK_V1 = qrvalue(QRType_DARK | 1) + var QRValue_DATA_V0 = qrvalue(QRType_DATA) + var QRValue_DATA_V1 = qrvalue(QRType_DATA | 1) + var QRValue_FINDER_V0 = qrvalue(QRType_FINDER) + var QRValue_FINDER_V1 = qrvalue(QRType_FINDER | 1) + var QRValue_FORMAT_V0 = qrvalue(QRType_FORMAT) + var QRValue_FORMAT_V1 = qrvalue(QRType_FORMAT | 1) + var QRValue_INIT_V0 = qrvalue(QRType_INIT) + var QRValue_SPLITTER_V0 = qrvalue(QRType_SPLITTER) + var QRValue_SPLITTER_V1 = qrvalue(QRType_SPLITTER | 1) + var QRValue_TIMING_V0 = qrvalue(QRType_TIMING) + var QRValue_TIMING_V1 = qrvalue(QRType_TIMING | 1) + var QRValue_VERSION_V0 = qrvalue(QRType_VERSION) + var QRValue_VERSION_V1 = qrvalue(QRType_VERSION | 1) + func DefaultEncodingOption() *encodingOption + func SetDebugMode() + type EncodeOption interface + func WithEncodingMode(mode encMode) EncodeOption + func WithErrorCorrectionLevel(ecLevel ecLevel) EncodeOption + func WithVersion(version int) EncodeOption + type Matrix struct + func (m *Matrix) Col(cur int) []qrvalue + func (m *Matrix) Copy() *Matrix + func (m *Matrix) Height() int + func (m *Matrix) Iterate(direction iterDirection, fn func(x, y int, s QRValue)) + func (m *Matrix) Row(cur int) []qrvalue + func (m *Matrix) Width() int + type QRCode struct + func New(text string) (*QRCode, error) + func NewWith(text string, opts ...EncodeOption) (*QRCode, error) + func (q *QRCode) Dimension() int + func (q *QRCode) Save(w Writer) error + type QRType = qrtype + type QRValue = qrvalue + func (v QRValue) IsSet() bool + func (v QRValue) Type() qrtype + type Writer interface + Close func() error + Write func(mat Matrix) error