qrgo

command module
v0.0.0-...-5f41b01 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 9 Imported by: ? 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.

README

QRGo: QR Code Generator & Decoder CLI Tool

A simple command-line tool written in Go to generate QR codes from file or stdin input, and decode QR codes from image files. Output as JPEG or display in terminal.

Prerequisites

  • Go 1.18 or newer

Installation

  1. Clone or download this repository.
  2. Install dependencies:
    go mod tidy
    
  3. Build the executable:
    go build -o qrgo.exe main.go
    

Usage

Display QR code in terminal (ASCII art)
# From file
./qrgo.exe --input path/to/input.txt --ascii

# From stdin
Get-Content path/to/input.txt | ./qrgo.exe --ascii
Generate QR code and save as JPEG
# From file
./qrgo.exe --input path/to/input.txt --output qr_output.jpg

# From stdin
Get-Content path/to/input.txt | ./qrgo.exe --output qr_output.jpg
Decode QR code from image file
./qrgo.exe --input qr_output.jpg --decode

Arguments

  • --input, -i : Path to input file (for encoding) or image file (for decoding)
  • --output, -o : Path to output JPEG file (required for JPEG output)
  • --ascii, -a : Display QR code in terminal as ASCII art
  • --decode, -d : Decode QR code from image file (prints decoded content)
  • --binary, -b : Treat input as binary and encode as base64

Example

./qrgo.exe --input "hello.txt" --ascii
./qrgo.exe --input "hello.txt" --output "hello.jpg"
./qrgo.exe --input "hello.jpg" --decode

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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