Skip to content

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

License

Notifications You must be signed in to change notification settings

jchv/go-webview-selector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages