Created
May 22, 2019 18:37
-
-
Save danesparza/a04b030bf502c7065335cba9c89cfc6a to your computer and use it in GitHub Desktop.
Create a QR code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
qrcode "github.com/skip2/go-qrcode" | |
) | |
func main() { | |
err := qrcode.WriteFile("https://www.danesparza.net", qrcode.Medium, 128, "qr.png") | |
if err != nil { | |
log.Fatalf("An error occurred creating the QR code image: %v", err) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment