Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/han-ya-jun/qrcode2console
链接生成二维码输出到console或者是二维码图片输出到console
https://github.com/han-ya-jun/qrcode2console
qrcode qrcode2console
Last synced: 3 months ago
JSON representation
链接生成二维码输出到console或者是二维码图片输出到console
- Host: GitHub
- URL: https://github.com/han-ya-jun/qrcode2console
- Owner: Han-Ya-Jun
- License: apache-2.0
- Created: 2019-04-30T06:54:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-04-30T08:17:48.000Z (over 5 years ago)
- Last Synced: 2024-06-20T05:07:56.151Z (7 months ago)
- Topics: qrcode, qrcode2console
- Language: Go
- Homepage: https://raw.githubusercontent.com/Han-Ya-Jun/qrcode2console/master/case1.png
- Size: 45.9 KB
- Stars: 11
- Watchers: 3
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### qrcode2console
链接生成二维码输出到console或者是二维码图片输出到console
### 安装
```go
go get -u github.com/Han-Ya-Jun/qrcode2console
```
### 示例
```go
func TestNewQRCode2ConsoleWithUrl(t *testing.T) {
qr := NewQRCode2ConsoleWithUrl("https://hanyajun.com", true)
//qr.Debug()
qr.Output()
}func TestNewQRCode2ConsoleWithPath(t *testing.T) {
qr := NewQRCode2ConsoleWithPath("qrcode.jpg")
//qr.Debug()
qr.Output()
}
```
### 效果
![image](case1.png)
![image](case2.png)