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?
Electron: bundled Node. js and the Chromium browser to create a packaged local web-app. Usable with Golang frameworks like go-app or go-astilectron.
Electron is the best cross-OS GUI platform I've used To begin with, Node. js is a joyful development platform. Then, it's joyful to write the application using HTML+JavaScript, as you do in Electron. Finally, Electron makes it relatively easy to put all that together.
With an improved runtime and great integration with JavaScript and Node. js, Electron JS makes both designing desktop apps and maintaining them on cross platforms easier and better.
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)
The interaction of an application written in electron with its backend is exactly like a Web browser, therefore you have the same options (Web Api, Web Sockets, Ajax, etc.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With