**skip2/go-qrcode生成二维码** github地址:https://github.com/skip2/go-qrcode 获取: ~~~ go get skip2/go-qrcode ~~~ 生成二维码图片: ~~~ package main import qrcode "github.com/skip2/go-qrcode" import "fmt" func main() { err := qrcode.WriteFile("http://blog.csdn.net/wangshubo1989", qrcode.Medium, 256, "qr.png") if err != nil { fmt.Println("write error") } } ~~~