使用方式:
http://studygolang.com/articles/5456
https://siongui.github.io/2016/01/09/go-sqlite-example-basic-usage/
交叉编译
$ CC=i686-w64-mingw32-gcc-win32 GOOS=windows GOARCH=386 CGO_ENABLED=1 \
go build -o go-one-password-ui go-one-password-ui.go
github.com/mattn/go-gtk/pango
/usr/bin/i686-w64-mingw32-ld: cannot find -lpango-1.0
/usr/bin/i686-w64-mingw32-ld: cannot find -lgobject-2.0
/usr/bin/i686-w64-mingw32-ld: cannot find -lglib-2.0
collect2: error: ld returned 1 exit status
github.com/mattn/go-gtk/glib
/usr/bin/i686-w64-mingw32-ld: cannot find -lgobject-2.0
/usr/bin/i686-w64-mingw32-ld: cannot find -lglib-2.0
collect2: error: ld returned 1 exit status
I also needed to make sure I had several different gcc packages installed on my Ubuntu machine to support this process. I installed them with:
s