Versions in this module Expand all Collapse all v1 v1.0.0 Sep 14, 2020 Changes in this version + func Encode(content string, level RecoveryLevel, size int) ([]byte, error) + func EncodeWithLogo(content string, level RecoveryLevel, size int, logo image.Image, ...) ([]byte, error) + func WriteColorFile(content string, level RecoveryLevel, size int, ...) error + func WriteFile(content string, level RecoveryLevel, size int, filename string) error + type QRCode struct + BackgroundColor color.Color + Content string + DisableBorder bool + ForegroundColor color.Color + Level RecoveryLevel + VersionNumber int + func New(content string, level RecoveryLevel) (*QRCode, error) + func NewWithForcedVersion(content string, version int, level RecoveryLevel) (*QRCode, error) + func (q *QRCode) Bitmap() [][]bool + func (q *QRCode) Image(size int) image.Image + func (q *QRCode) ImageWithLogo(size int, logo image.Image, logoWidth, logoHeight int) image.Image + func (q *QRCode) PNG(size int) ([]byte, error) + func (q *QRCode) ToSmallString(inverseColor bool) string + func (q *QRCode) ToString(inverseColor bool) string + func (q *QRCode) Write(size int, out io.Writer) error + func (q *QRCode) WriteFile(size int, filename string) error + type RecoveryLevel int + const High + const Highest + const Low + const Medium