Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 1.25 KB

README.md

File metadata and controls

56 lines (41 loc) · 1.25 KB

qr

Docker goreleaser Go Reference

A lightweight QR encoder CLI and library.

  • Simple to use
  • PNG support
  • Terminal support

Install and Use CLI

Using GO

go install github.com/chey/qr@latest

qr https://www.example.com

image

Docker

docker run --rm ghcr.io/chey/qr https://www.example.com

Brew

brew install chey/tap/qr

Other

See the releases page for other downloads.

Library usage

go get [-u] github.com/chey/qr

Example

This example prints a small QR code to the terminal using the lowest level of error correction.

package main

import (
    "github.com/chey/qr/code"
)

func main() {
    qr, _ := code.New("https://www.example.com", code.Low)
    qr.Print()
}