1
0
Fork 0
Simple webview glue library.
  • C 87.8%
  • C++ 11.2%
  • Go 1%
Find a file
Sky Johnson 4cc95e174d Move module to git.sharkk.net/go/webview and update to Go 1.25
Update all import paths, switch to webkit2gtk-4.1, and remove
GitHub CI workflow.
2026-03-02 13:53:05 -06:00
examples Move module to git.sharkk.net/go/webview and update to Go 1.25 2026-03-02 13:53:05 -06:00
libs Add dummy files to allow vendoring (#54) 2024-08-31 18:35:39 +09:00
.gitignore Move module to git.sharkk.net/go/webview and update to Go 1.25 2026-03-02 13:53:05 -06:00
CHANGELOG.md Add changelog (#2) 2023-09-02 03:14:50 +09:00
glue.c Fix race conditions, memory leaks, and double-destroy in bindings 2026-03-02 13:37:49 -06:00
go.mod Move module to git.sharkk.net/go/webview and update to Go 1.25 2026-03-02 13:53:05 -06:00
go.sum Add Go binding (#1) 2023-09-01 14:41:19 +09:00
LICENSE Add Go binding (#1) 2023-09-01 14:41:19 +09:00
README.md Add Go binding (#1) 2023-09-01 14:41:19 +09:00
webview.cc Add Go binding (#1) 2023-09-01 14:41:19 +09:00
webview.go Move module to git.sharkk.net/go/webview and update to Go 1.25 2026-03-02 13:53:05 -06:00
webview_test.go Add Go binding (#1) 2023-09-01 14:41:19 +09:00

webview_go

GoDoc Go Report Card

Go language binding for the webview library.

Note

Versions <= 0.1.1 are available in the old repository.

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-project

Create a new Go module.

go mod init example.com/app

Save 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_go

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

go build

Notes

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