Skip to content

Go language bindings for the webview library.

License

Notifications You must be signed in to change notification settings

webview/webview_go

Repository files navigation

webview_go

GoDoc Go Report Card

Go language binding for thewebview library.

Note

Versions <= 0.1.1 are available in theold repository.

Getting Started

SeeGo package documentationfor the Go API documentation, or simply read the source code.

Start with creating a new directory structure for your project.

mkdir my-project&&cdmy-project

Create a new Go module.

go mod init example /app

Save one of the example programs into your project directory.

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

Install dependencies.

go get github /webview/webview_go

Build the example. On Windows, add-ldflags= "-H windowsgui"to the command line.

go build

Notes

CallingEval()orDispatch()beforeRun()does not work because the webview instance has only been configured and not yet started.