https://github.com/auula/qrcode-go
Golang genreate tool library of QrCode.
https://github.com/auula/qrcode-go
golang golang-library golang-package qrcode qrcode-generator
Last synced: 3 months ago
JSON representation
Golang genreate tool library of QrCode.
- Host: GitHub
- URL: https://github.com/auula/qrcode-go
- Owner: auula
- License: mit
- Created: 2020-07-08T12:22:19.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-11T08:45:51.000Z (almost 5 years ago)
- Last Synced: 2025-01-29T18:32:44.794Z (5 months ago)
- Topics: golang, golang-library, golang-package, qrcode, qrcode-generator
- Language: Go
- Homepage:
- Size: 969 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 设置头像
```golang
qr.SetAvatar(&qrcode.Avatar{
Src: "../static/1.jpg",
Width: 60,
Height: 60,
Round: 10,
})
```## 设置背景图
```
qr.SetBackgroundImage(&qrcode.SetBackgroundImage{
Src: "../static/3.png",
X: 70,
Y: 55,
Width: 270,
Height: 270,
})
```## 设置前景图
```
qr.SetForegroundImage("../static/2.png")
```








