qrcon

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package qrcon implements a QR Code ANSI printer for displaying QR codes on the console.

Index

Examples

Constants

This section is empty.

Variables

View Source
var ErrUnknowColor = fmt.Errorf("unknown color")

ErrUnknowColor is returned when the color is unknown.

Functions

func QRCode

func QRCode(content string) (string, error)

QRCode returns a string containing an ANSI encoded QR Code.

Example
code, err := QRCode("foo")
if err != nil {
	panic(err)
}

fmt.Println(code)
Output:

Types

This section is empty.

Jump to

Keyboard shortcuts

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