A Code is a square pixel grid. // 1 is black, 0 is white // number of pixels on a side // number of bytes per row(*Code) Black(x, y int) bool
func (*Plan).Encode(text ...Encoding) (*Code, error)
Encoding implements a QR data encoding scheme.
The implementations--Numeric, Alphanumeric, and String--specify
the character set and the mapping from UTF-8 to code bits.
The more restrictive the mode, the fewer code bits are needed.( Encoding) Bits(v Version) int( Encoding) Check() error( Encoding) Encode(b *Bits, v Version)AlphaNumString
func (*Plan).Encode(text ...Encoding) (*Code, error)
A Mask describes a mask that is applied to the QR
code to avoid QR artifacts being interpreted as
alignment and timing patterns (such as the squares
in the corners). Valid masks are integers from 0 to 7.( Mask) Invert(y, x int) bool
func NewPlan(version Version, level Level, mask Mask) (*Plan, error)
func fplan(l Level, m Mask, p *Plan) error
func mplan(m Mask, p *Plan) error
The pages are generated with Goldsv0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.