Skip to content

GeertJohan/go.qrt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go.qrt

GoDoc 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

Install

go get github.com/GeertJohan/go.qrt

Usage example

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)
}

Documentation

For more information about the options you can use for QR generation, please check the documentation at godoc.org/github.com/GeertJohan/go.qrt

License

This project is licensed under a Simplified BSD license. Please read the LICENSE file.

Attribution

This package imports and uses code.google.com/p/rsc/qr, a QR generation package by Russ Cox.

Screenshot

QR code in terminal

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.

About

QR codes for terminals

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages