Generate QR code's for in your terminal.
go.qrt generates a QR code based on UTF-8 characters. This allow you to display a QR code in your terminal
go get github.com/GeertJohan/go.qrt
package main
import (
"fmt"
"github.com/GeertJohan/go.qrt"
)
func main() {
str, err := qrt.Generate("some example text")
if err != nil {
fmt.Println(err)
return
}
fmt.Print(str)
}
For more information about the options you can use for QR generation, please check the documentation at godoc.org/github.com/GeertJohan/go.qrt
This project is licensed under a Simplified BSD license. Please read the LICENSE file.
This package imports and uses code.google.com/p/rsc/qr, a QR generation package by Russ Cox.
Depending on your terminal and font you may need to scan the QR code under an angle to make it appear square for the scanner.