go-mkqrcode

command module
v0.0.0-...-551a5a8 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: MIT Imports: 10 Imported by: 0

README

go-mkqrcode

This program is a CLI tool to generate QR-Code.

Installation

go get github.com/yoshi389111/go-mkqrcode

usage

$ go-mkqrcode --help
Usage: go-mkqrcode [options] MESSAGE
Options:
 -b, --black=STRING
                    pattern of black
 -e, --encoding={auto|numeric|alphanumeric|unicode}
                    encoding of QR-code [auto]
 -h, --help         show help message
 -l, --level={L|M|Q|H}
                    error correction level [M]
 -m, --margin=NUMBER
                    margin of QR-code [4]
 -o, --output=FILE  output file name
 -s, --size=NUMBER  size of QR-code(Image) [200]
 -v, --version      show version info
 -w, --white=STRING
                    pattern of white

demo

Output QR-Code image file.

go-mkqrcode -o hello.png "hello"

Print QR-Code to terminal.

go-mkqrcode "hello world"

hello world

Notice

github.com/boombuler/barcode
github.com/pborman/getopt

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