LoginSignup
2

More than 5 years have passed since last update.

ターミナル上にQRコードを表示するコマンドをGoで作ってみた

Posted at

gqr.gif

インストール

$ go get -u github.com/dorako321/gqr

使い方

-m に続く文字列をQRコードに変換します。

$ gqr -m foo

パイプで文字列を渡すことも可能です。

$ echo "bar" | gqr

作った経緯

前回GoでQRコードを出力するサービスを作ってみるでQRコードを少し触ったのでその流れで作ってみました。使いみちとしてはターミナル上の文字列をすばやくスマホに送ることができるかもしれません。ネタです。

コードは以下
https://github.com/dorako321/gqr

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
2