package main import ( "fmt" "github.com/webview/webview" ) func main() { w := webview.New(true) defer w.Destroy() w.SetTitle("example") w.SetSize(800, 600, webview.HintNone) w.Navigate("http://192.168.0.19:8080") w.Bind("hello", func(followers string) { fmt.Println("CloudNativeFdn has", followers) go say(w, followers) }) w.Run() } func say(w webview.WebView, followers string) { w.Dispatch(func() { w.Eval("say('asdfasdfasd')") }) }