textqr

package module
v0.0.0-...-28c55ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2018 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(w io.Writer, text string, level Level, compact, inverted bool) (int, error)

Write encodes text into a QR code and writes it into w. The redundancy level is set by level argument. If compact is true, compact QR codes are produced, otherwise large ones (x4 of compact ones) are produced. If inverted is true, the code "pixels" will appear as unfilled on filled background, and inverse otherwise.

Types

type Level

type Level int
const (
	L Level = iota // 20% redundant
	M              // 38% redundant
	Q              // 55% redundant
	H              // 65% redundant
)

Directories

Path Synopsis
cmd
qr

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL