Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Encodes a string into a QR code and outputs PNG bytes.
package main
import (
"fmt"
"rsc.io/qr"
)
func main() {
code, err := qr.Encode("Hello, world!", qr.Q)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(code.PNG())
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.2.0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.