can't find import go-gtk

952 Views Asked by At

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 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.

2

There are 2 best solutions below

0
On

Use following command to install necessary packages

go get github.com/mattn/go-gtk 
2
On

Use:

go install github.com/mattn/go-gtk/gtk

and it will download and install this library in $GOPATH/src