I want to build an application using Go with a GUI baked in. A workable solution for that seems to be webview.
What I have now is this (and it works!):
package main
import (
"github.com/webview/webview"
)
var count int = 0
func main() {
w := webview.New(true)
defer w.Destroy()
w.SetSize(600, 200, webview.HintNone)
w.Bind("btn", func() int {
count++
return count
})
//Create UI with data URI
w.Navigate(`data:text/html,
<!doctype html>
<html>
...
</html>`)
w.Run()
}
What I would like to do is to build the gui in a seperate workspace so that I have working syntax hilighting, intellisense etc. so something like:
w.Navigate("./GUI/gui.html")
However, I can't get it to work. is it possible anyway?