qrcode

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package qrcode draws links as QR codes so a person can open an approval page or the inbox on a phone by pointing its camera at a screen.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SVG

func SVG(text, label string) (template.HTML, error)

SVG returns an inline SVG of text as a QR code with a white background. It uses only presentation attributes, so a strict style-src still applies.

func Terminal

func Terminal(text string) (string, error)

Terminal returns text as a QR code for a terminal: two module rows per line with half blocks, drawn black on an explicit white background so it scans on light and dark themes alike.

Types

This section is empty.

Jump to

Keyboard shortcuts

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