Skip to content

Instantly share code, notes, and snippets.

View main.go
package main
import qrcode "github.com/skip2/go-qrcode"
func main() {
q, err := qrcode.New("https://example.org", qrcode.Medium)
if err != nil {
panic(err)
}
@skip2
skip2 / datauri.go
Created Aug 31, 2019
Demo of generating a QR Code Data URI
View datauri.go
package main
import (
"encoding/base64"
"fmt"
qrcode "github.com/skip2/go-qrcode"
)
func main() {
View gist:c8196e0701aa714ab4ea4677ad854896
### Keybase proof
I hereby claim:
* I am skip2 on github.
* I am skip2 (https://keybase.io/skip2) on keybase.
* I have a public key ASDmJm2ivGrPX8TJDjrqH1Wms8kjepoPGn0vkkppDoIC1go
To claim this, I am signing this object: