Electron UI for Golang Program?

Ashkay picture Ashkay · May 1, 2016 · Viewed 19.7k times · Source

I'd like to make a GUI in Electron for a Desktop Application written in Go (currently it's a command line tool).

What's the convention for communicating between the Electron and Go processes?

Would simply using the Go binary as an API work? Some sort of websocket communication?

Answer

Asticode picture Asticode · Apr 29, 2017

You can use go-astilectron it allows you to build cross-platform GUI apps with GO and HTML/JS/CSS (powered by Electron) (disclosure: I'm the author)