Go language bindings for the webview library.
Go to file
Arzumify b35dcff391
Update webview.go to 4.1
2024-04-25 08:52:59 +01:00
.github/workflows Add Go binding (#1) 2023-09-01 14:41:19 +09:00
examples Add Go binding (#1) 2023-09-01 14:41:19 +09:00
libs Update core webview library to version fb6b17d (#31) 2024-02-20 14:12:47 +09:00
.gitignore Initial commit 2020-06-12 13:00:27 +02:00
CHANGELOG.md Add changelog (#2) 2023-09-02 03:14:50 +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
glue.c Implement unbind 2024-02-17 18:40:20 +09:00
go.mod Add Go binding (#1) 2023-09-01 14:41:19 +09:00
go.sum 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 Update webview.go to 4.1 2024-04-25 08:52:59 +01:00
webview_test.go Add Go binding (#1) 2023-09-01 14:41:19 +09:00

README.md

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.