Versions in this module Expand all Collapse all v1 v1.0.0 Apr 19, 2026 Changes in this version + const ECLevelH + const ECLevelL + const ECLevelM + const ECLevelQ + const ModeAlphanumeric + const ModeByte + const ModeKanji + const ModeNumeric + func AlphanumericValue(b byte) (int, bool) + func ApplyMask(matrix [][]bool, maskPattern, version int) + func BestEncodingMode(data []byte) int + func BestMaskPattern(baseMatrix [][]bool, ecLevel, version int) int + func BlockCount(version, ecLevel int) (group1Blocks, group2Blocks int) + func BuildMatrix(version int) [][]bool + func Capacity(version, ecLevel, mode int) int + func CloneMatrix(matrix [][]bool) [][]bool + func DataCapacity(version, ecLevel int) int + func DataCodewords(version, ecLevel int) int + func ECCodewords(version, ecLevel int) int + func EncodeEC(data []byte, ecCount int) []byte + func EncodeECBlocks(dataBlocks [][]byte, ecPerBlock int) [][]byte + func GeneratorPoly(degree int) []int + func IsAlphanumeric(b byte) bool + func IsNumeric(b byte) bool + func MatrixSize(version int) int + func MinVersionForData(dataLen, ecLevel int) (int, error) + func NewMatrix(version int) [][]bool + func PenaltyScore(matrix [][]bool, _ int) int + func PlaceAlignmentPattern(matrix [][]bool, _, row, col int) + func PlaceAllAlignmentPatterns(matrix [][]bool, version int) + func PlaceAllFinderPatterns(matrix [][]bool, version int) + func PlaceDarkModule(matrix [][]bool, version int) + func PlaceDataBits(matrix [][]bool, dataBits []bool, version int) + func PlaceFinderPattern(matrix [][]bool, row, col int) + func PlaceFormatInfo(matrix [][]bool, ecLevel, maskPattern int) + func PlaceTimingPatterns(matrix [][]bool, version int) + func PlaceVersionInfo(matrix [][]bool, version int) + func PrintMatrix(matrix [][]bool) string + func RemoveMask(matrix [][]bool, maskPattern, version int) + func VerifyMatrixSize(matrix [][]bool, version int) error + type QRCode struct + Data []byte + ECLevel int + MaskPattern int + Metadata map[string]string + Modules [][]bool + Size int + Version int + func Encode(data []byte, ecLevel, version int) (*QRCode, error) + func EncodeWithMask(data []byte, ecLevel, version, maskPattern int) (*QRCode, error) + type VersionInfo struct + DataCodewords int + ECBlocks int + ECCodewordsPerBlock int + Group1Blocks int + Group1DataCodewords int + Group2Blocks int + Group2DataCodewords int + NumGroups int + TotalCodewords int + Version int + func GetVersionInfo(version, ecLevel int) (*VersionInfo, error)