4 ms·
Does anyone know if this means a Webview2 runtime is shipped with Windows? I find CGo to be a bit more painful on Windows than it is on other platforms, so one
by jchw 6y ago
Does anyone know if this means a Webview2 runtime is shipped with Windows?
I find CGo to be a bit more painful on Windows than it is on other platforms, so one thing I’ve experimented with is a pure Go wrapper around Webview2[1] that is roughly compatible with the popular webview/webview library. When the runtime is installed by default it’ll make a huge difference. (FWIW, I would not recommend using my library as is since it lacks JS bindings support for now, but I will probably look into it again some day soon.)
[1]: https://github.com/jchv/go-webview2 https://github.com/jchv/go-webview2
- mrpippy 6y agoIn the future it will be, but for now it’s a redistributable (that will keep itself updated and is separate from Edgium) https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution#understanding-the-webview2-runtime https://docs.microsoft.com/en-us/microsoft-edge/webview2/con...
- mappu 6y agoThe 1.0 SDK also (finally!) includes a static .lib version of the WebView2Loader.dll, so you may be able to convert that to a _syso and link it in directly instead of using go-winloader.
- jchw 6y agoThat sounds a lot less horrible :) although it was still fun to write.