**tuotoo/qrcode识别二维码** github地址:https://github.com/tuotoo/qrcode 获取: ~~~ go get github.com/tuotoo/qrcode ~~~ 读取二维码图片: ~~~ package main import ( "fmt" "os" "github.com/tuotoo/qrcode" ) func main() { fi, err := os.Open("qrcode.png") if err != nil { fmt.Println(err.Error()) return } defer fi.Close() qrmatrix, err := qrcode.Decode(fi) if err != nil { fmt.Println(err.Error()) return } fmt.Println(qrmatrix.Content) } ~~~