

Run runs the main loop until it's terminated. It can be acquired from the WebView2 SDK (which is permissively licensed.) Expand ▾ Collapse ▴ If you want, you can also provide a newer version of WebView2Loader.dll in the DLL search path and it should be picked up instead. This will use go-winloader to load an embedded copy of WebView2Loader.dll.

If you don't have it installed, you can download and install a copy from Microsoft's website:Īfter that, you should be able to run go-webview2 directly: go run. If you are using Windows 10+, the WebView2 runtime should already be installed. It uses go-webview2 internally on Windows. If you wish to build desktop applications in Go using web technologies, please consider Wails. However, you will not be able to use WebView2-specific functionality. If you wish to use this library for Windows, but use webview/webview for all other operating systems, you could use the go-webview-selector package instead. Please note that this package only supports Windows, since it provides functionality specific to WebView2. It is based on webview/webview and provides a compatible API. This package provides an interface for using the Microsoft Edge WebView2 component with Go.
