GitHub - webview/webview_go: Go language bindings for the webview library.

GitHub

Go language binding for the

webview library

.

Getting Started

See

Go package documentation

for the Go API documentation, or simply read the source code.

Start with creating a new directory structure for your project.

mkdir my-project &&cd my-projectCreate a new Go module.

go mod init example.com/appSave one of the example programs into your project directory.

curl -sSLo main.go "https://raw.githubusercontent.com/webview/webview_go/master/examples/basic/main.go"Install dependencies.

go get github.com/webview/webview_goBuild the example. On Windows, add -ldflags="-H windowsgui" to the command line.

go buildNotes

Calling Eval() or Dispatch() before Run() does not work because the webview instance has only been configured and not yet started.