Are there any projects that currently offer similar functionality to Electron.JS? I know of Thrust, but the last commit was over a year ago...
I love Go, but making a cross-platform GUI application seems to a challenge. I was thinking of termbox / termui ... but I have some reservations.
Thanks.
评论:
Sk1LLb0X:
Xonzo:
szabba:Very interesting, thanks for the link.
shazow:Do I understand right, that the original Sciter thing (not the binding) is not FLOSS and gets linked dynamically?
If I were building a GUI frontend in Go, I'd probably use one of:
- QML (web-inspired syntax for building native GUIs)
- Straight-up QT bindings
- andlabs/ui which is a custom native GUI library, a fairly ambitious project.
Some more options here: https://github.com/avelino/awesome-go#gui
Mustermind:Xonzo:I started working on it, but decided it was much easier to go for ES6 instead. I really wouldn't recommend writing frontends in go, just because it doesn't really provide any benefits over regular javascript.
I wouldn't call the DOM a strength of golang :P
Mustermind:heheh noted. I <3 Go though ;)
Cykon:Although it would be cool if someone used Electron bindings to create a UI framework in Go...
zacheryph:It would actually be pretty cool to see a version of webkit running with GO javascript hooks.
-Nii-:https://wiredcraft.com/blog/high-security-electron-js-application/
They used electron with a Go backend (locally.) Can't read easily on my phone nor have I tried it but... If you are already comfortable with electron gives you just that with compiled go to call into (via http/rest interface I imagine)
I made a repo awhile back with an early implementation of Go with Electron. It uses the main node process to spawn a Go executable. The backend communicates with the frontend react app using gRPC.
Here's the link!