example.go 212 B

123456789101112131415
  1. package main
  2. import (
  3. "github.com/zserge/webview"
  4. )
  5. func main() {
  6. w := webview.New(true)
  7. w.Navigate("https://github.com")
  8. w.SetTitle("Hello")
  9. w.Dispatch(func() {
  10. println("Hello dispatch")
  11. })
  12. w.Run()
  13. }