开发者

can't find import go-gtk

开发者 https://www.devze.com 2023-04-04 10:34 出处:网络
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 开发者_Stac

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 
0

精彩评论

暂无评论...
验证码 换一张
取 消