Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yoshi389111/go-mkqrcode
generate QR-Code
https://github.com/yoshi389111/go-mkqrcode
golang qrcode
Last synced: 11 days ago
JSON representation
generate QR-Code
- Host: GitHub
- URL: https://github.com/yoshi389111/go-mkqrcode
- Owner: yoshi389111
- License: mit
- Created: 2020-05-17T04:11:48.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-07T20:21:49.000Z (over 3 years ago)
- Last Synced: 2024-11-08T01:52:58.311Z (2 months ago)
- Topics: golang, qrcode
- Language: Go
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
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](https://raw.githubusercontent.com/wiki/yoshi389111/go-mkqrcode/images/hello_world.gif)
## Notice
### `github.com/boombuler/barcode`
* Copyright (c) 2014 Florian Sundermann
* [MIT Lisence](https://github.com/boombuler/barcode/blob/master/LICENSE)
* GitHub [boombuler/barcode](https://github.com/boombuler/barcode)
* [Document](https://pkg.go.dev/github.com/boombuler/barcode)### `github.com/pborman/getopt`
* Copyright (c) 2017 Google Inc. All rights reserved.
* [BSD 3-Clause](https://github.com/pborman/getopt/blob/master/LICENSE)
* GitHub [pborman/getopt](https://github.com/pborman/getopt)
* [Document](https://pkg.go.dev/github.com/pborman/getopt)