Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wailsapp/go-webview2
The Wails fork of go-webview2
https://github.com/wailsapp/go-webview2
Last synced: 7 days ago
JSON representation
The Wails fork of go-webview2
- Host: GitHub
- URL: https://github.com/wailsapp/go-webview2
- Owner: wailsapp
- License: other
- Created: 2023-05-25T22:29:19.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-27T01:00:18.000Z (7 days ago)
- Last Synced: 2024-12-27T02:17:02.362Z (7 days ago)
- Language: Go
- Size: 854 KB
- Stars: 39
- Watchers: 3
- Forks: 19
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
This is a locally maintained fork of [go-webview2](https://github.com/jchv/go-webview2)
that is intended to be used with Wails applications. It is not intended to be used
as a standalone package.----------------
To update this package, run the following commands:
```bash
task update
```----------------
Original README.md follows:
# go-webview2
This is a proof of concept for embedding Webview2 into Go without CGo. It is based
on [webview/webview](https://github.com/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.
[WebView2 runtime](https://developer.microsoft.com/en-us/microsoft-edge/webview2/)
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 :)