A Simple QRCode Generator.
go install github.com/rokuosan/qrg@latestqrg <text>--format: Specify the datetime format. The default is the Go format20060102_150405.-c--clipboard: Save the QR code to the clipboard instead of a file.-o--output: Specify the output file name. (e.g.qrg -o qrcode.png "text")
When you run the command, a PNG file with the date and time as the file name will be generated in the current directory.
Print the created file name to standard output.
$ qrg "https://example.com/"
20250118_20-42-26.pngOn macOS, you can use the open command to view the generated QR code in the Preview app.
$ qrg "https://example.com/" | xargs openIf you want to save the QR code to your clipboard, you can use the --clipboard(-c) option.
$ qrg -c "https://example.com/"This software is released under the MIT License, see LICENSE.