qr

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package qr encodes bytes as a QR code (ISO/IEC 18004: byte mode, error correction level L) so a phone can pair with a Bridge by photographing a terminal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code [][]bool

Code is a square module matrix; true is dark.

func Encode

func Encode(data []byte) (Code, error)

Encode returns the smallest level-L code holding data.

func (Code) Terminal

func (q Code) Terminal() string

Terminal renders two module rows per line with half blocks, dark on light and a quiet zone, in explicit ANSI colours so it scans on dark and light terminal themes alike.

Jump to

Keyboard shortcuts

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