![]() * Added option to specify webview2 path * Added `manual` webview strategy * Update documentation * Fixed build with manual tag * Check for browser directory existence * Added version check for manually specified webview, removed fallback for installed webview in manual strategy * Update WebviewBrowserPath documentation * Replaced deprecated StringToUTF16Ptr * Return on error * Removed manual strategy, return error in wv2installer for fixed runtime * Removed manual strategy from CLI |
||
---|---|---|
.. | ||
internal/w32 | ||
pkg/edge | ||
webviewloader | ||
LICENSE | ||
README.md |
go-webview2
This is a proof of concept for embedding Webview2 into Go without CGo. It is based on webview/webview and provides a compatible API.
Notice
Because this version doesn't currently have an EdgeHTML fallback, it will not work unless you have a Webview2 runtime installed. In addition, it requires the Webview2Loader DLL in order to function. Adding an EdgeHTML fallback should be technically possible but will likely require much worse hacks since the API is not strictly COM to my knowledge.
Demo
For now, you'll need to install the Webview2 runtime, as it does not ship with Windows.
After that, you should be able to run go-webview2 directly:
go run go-webview2/cmd/demo
This will use go-winloader to load an embedded copy of WebView2Loader.dll.
If this does not work, please try running from a directory that has an appropriate copy of WebView2Loader.dll
for your
GOARCH. If that worked, please file a bug so we can figure out what's wrong with go-winloader :)