News for hackers. Stuff that matters.
Re:Create a simple cross-platform desktop game with Go by splitbrain on Saturday August 18, 2018 @06:11AM (#17787794)
Interesting, though what this actually does is run a local webserver so I assume it would be even simpler to just open the default web browser pointed to the local server? But then you start thinking that sound output could also be handled via the audio API and one could even play this remotely. So what you created is a webapp? Why even run it locally at all then... just some thoughts. Still a cool idea to circumvent the lack of good native UI support in go I guess.
Re:Create a simple cross-platform desktop game with Go by zserge on Saturday August 18, 2018 @09:59AM (#17788484)
Webview author here. It does not require local web server actually, it allows to inject js, css, HTML in runtime and bind go structs to is objects through the API, so the result is a self contained web app with no server. Although using a local web server may be more convenient to most web developers.
Re:Create a simple cross-platform desktop game with Go by sausheong on Saturday August 18, 2018 @11:40PM (#17792433)
I wrote the blog post, thanks Serge for the great library! I considered the self-contained app without the web server method, but I've already done the images before and I'm way more comfortable with Go web programming (I wrote that book too).
Re:Create a simple cross-platform desktop game with Go by pier25 on Saturday August 18, 2018 @11:35AM (#17788941)
Why IE and not Edge for Windows?
Re:Create a simple cross-platform desktop game with Go by zserge on Saturday August 18, 2018 @01:00PM (#17789375)
Integrating Edge is my dream. However there is no C API unlike MSHTML. I still have hopes on cppwinrt though. Any help in this direction is highly appreciated.
Re:Create a simple cross-platform desktop game with Go by messe on Saturday August 18, 2018 @06:14AM (#17787803)
> Why even run it locally at all then

Latency?