Created
October 27, 2019 15:15
-
-
Save skip2/7e3d8a82f5317df9be437f8ec8ec0b7d to your computer and use it in GitHub Desktop.
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 qrcode "github.com/skip2/go-qrcode" | |
func main() { | |
q, err := qrcode.New("https://example.org", qrcode.Medium) | |
if err != nil { | |
panic(err) | |
} | |
q.DisableBorder = true | |
err = q.WriteFile(256, "example-noborder.png") | |
if err != nil { | |
panic(err) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment