qrcon

package
v1.15.15 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 4 Imported by: 12

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
{ //nolint:testableexamples
	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