Skip to content

Instantly share code, notes, and snippets.

@skip2
Created October 27, 2019 15:15
Show Gist options
  • Save skip2/7e3d8a82f5317df9be437f8ec8ec0b7d to your computer and use it in GitHub Desktop.
Save skip2/7e3d8a82f5317df9be437f8ec8ec0b7d to your computer and use it in GitHub Desktop.
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