Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrTooLong = errors.New("text too long for a QR code")
Error for text that does not fit even the largest QR symbol at the chosen level
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code struct {
// contains filtered or unexported fields
}
QR symbol, a square of dark and light modules without the quiet zone around it
func Encode ¶
Smallest QR symbol holding the bytes of text at the level, segmented into the modes that need the fewest bits and masked with the pattern that scores the lowest penalty
func (*Code) HalfBlocks ¶
Text of the symbol inside border light modules, two module rows per line of half block characters, every line ending in a newline and an odd last row leaving the lower half of its line unlit; invert draws the light modules as blocks for terminals with a dark background