jchv / go-webview-selector

A Go library for getting a web view, using go-webview2 on Windows and webview/webview on other platforms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

A Go library for getting a web view, using go-webview2 on Windows and webview/webview on other platforms.

License:ISC License


Languages

Language:Go 100.0%