Simple webview glue library.
- C 87.8%
- C++ 11.2%
- Go 1%
Update all import paths, switch to webkit2gtk-4.1, and remove GitHub CI workflow. |
||
|---|---|---|
| examples | ||
| libs | ||
| .gitignore | ||
| CHANGELOG.md | ||
| glue.c | ||
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| README.md | ||
| webview.cc | ||
| webview.go | ||
| webview_test.go | ||
webview_go
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.