Hello everyone
package main
import (
“github_com/mattn/go-webkit/webkit”
“github_com/conformal/gotk3/gtk”
)
func main() {
gtk.Init(nil)
win,:=gtk.WindowNew(gtk.WINDOW_TOPLEVEL)
win.Connect(“destroy”,func(){gtk.MainQuit()})
nbt,:=gtk.NotebookNew()
wv:=webkit.NewWebView()
wv.LoadUri(“http://www.google.fr”)
lab,_:=gtk.LabelNew(“google”)
nbt.AppendPage(wv,lab)
win.Add(nbt)
win.ShowAll()
gtk.Main()
}
gives the error
./test.go:14: cannot use wv (type *webkit.WebView)
as type “github_com/conformal/gotk3/gtk”.IWidget in argument
to nbt.AppendPage: *webkit.WebView does not implement
"github_com/conformal/gotk3/gtk".IWidget
(missing “github_com/conformal/gotk3/gtk”.toWidget method)
replace github_com by github.com ( question rejected otherwise )
same with other packages
how to do ?
thank you in advance