Skip to content

Instantly share code, notes, and snippets.

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 August 31, 2019 13:23
Demo of generating a QR Code Data URI
package main
import (
"encoding/base64"
"fmt"
qrcode "github.com/skip2/go-qrcode"
)
func main() {
### 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: