No description
Find a file
2025-07-30 17:22:35 +07:00
cmd/demo Initial commit. 2021-07-20 13:50:11 -07:00
go.mod chore: change path name 2025-07-30 17:22:35 +07:00
go.sum fix: update package name 2025-07-30 17:19:36 +07:00
LICENSE.md Initial commit. 2021-07-20 13:50:11 -07:00
README.md Initial commit. 2021-07-20 13:50:11 -07:00
shim_other.go fix: update package name 2025-07-30 17:19:36 +07:00
shim_windows.go Initial commit. 2021-07-20 13:50:11 -07:00

Go Webview Selector

This library is a tiny shim that provides access to a native webview for a given platform. It selects between two implementations:

  • On Windows, go-webview2 will be chosen. It embeds a copy of WebView2Loader, so it should work out of the box on any setup that has the WebView 2 runtime installed, which should include up-to-date Windows 10 installations and Windows 11. (As well, WebView 2 runtime is available going backwards to Windows 7.) This library does not require CGo and thus will build and run with CGO_ENABLED=0.

  • On other operating systems, webview/webview will be used. This runtime requires CGo, but supports a wide variety of platforms.