burgernotes-app/webkit-4.1
Tracker-Friendly 4753feeab9 Make install work offline 2024-04-25 17:58:39 +01:00
..
examples Make install work offline 2024-04-25 17:58:39 +01:00
libs Make install work offline 2024-04-25 17:58:39 +01:00
.gitignore Make install work offline 2024-04-25 17:58:39 +01:00
CHANGELOG.md Make install work offline 2024-04-25 17:58:39 +01:00
LICENSE Make install work offline 2024-04-25 17:58:39 +01:00
README.md Make install work offline 2024-04-25 17:58:39 +01:00
glue.c Make install work offline 2024-04-25 17:58:39 +01:00
go.mod Make install work offline 2024-04-25 17:58:39 +01:00
go.sum Make install work offline 2024-04-25 17:58:39 +01:00
webview.cc Make install work offline 2024-04-25 17:58:39 +01:00
webview.go Make install work offline 2024-04-25 17:58:39 +01:00
webview_test.go Make install work offline 2024-04-25 17:58:39 +01:00

README.md

webview_go-4.1

GoDoc Go Report Card

Go language binding for the webview library, for webkitgtk-4.1. This is entirely backwards compatible with webview_go 4.0, and needs only a dependency replacement.

[!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/arzumify/webview_go-4.1/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.