I've been playing around with Google Go, I love the power behind it and decided to try out some libraries. I tried using goinstall to install github.com/mattn/go-gtk/gtk but when I try to 开发者_StackOverflow中文版compile an example I'm getting:
can't find import: github.com/mattn/go-gtk/gtk
I've heard that others have problems with goinstall, is there anything I can do to fix this? I also saw that some people fixed this by putting the path as something like github.com/mattn/go-gtk/gtk/gtk.so but it's still not working for me.
Use:
go install github.com/mattn/go-gtk/gtk
and it will download and install this library in $GOPATH/src
Use following command to install necessary packages
go get github.com/mattn/go-gtk
精彩评论