-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
I try to use a exapmle:
gtk.Init(nil)
go func() {
runtime.LockOSThread()
gtk.Main()
}()
ctx := webloop.New()
view := ctx.NewView()
defer view.Close()
view.Open("http://google.com")
err := view.Wait() // error in runtime
if err != nil {
fmt.Fprintf(os.Stderr, "Failed to load URL: %s", err)
os.Exit(1)
}
res, err := view.EvaluateJavaScript("document.title")
if err != nil {
fmt.Fprintf(os.Stderr, "Failed to run JavaScript: %s", err)
os.Exit(1)
}
fmt.Printf("JavaScript returned: %q\n", res)It compiles, but gives an error in runtime:
"warning: no suitable Go value from object for arg 0: missing marshaler for type"
go1.12.7 linux/amd64
Ubuntu 18.04.2 LTS
How to fix it?
Thnx
Metadata
Metadata
Assignees
Labels
No labels