I gave the examples a run and I can confirm it works very well on Linux. Thank you for making this! Leveraging Electron as it is makes a lot of sense.
On Tue, Apr 25, 2017 at 12:54 PM Asticode <astic...@gmail.com> wrote: > Hi everyone, > > I'm happy to announce astilectron, a GO library to build cross platform GUI > apps in HTML/JS/CSS: https://github.com/asticode/go-astilectron > > I needed a way to build a cross platform GUI app in GO but none of the > projects out there were meeting my needs (they were either only > MacOSX-compatible or not maintained anymore). At the same time, I knew about > Electron which is cross-platform and well maintained. So I did the maths and > took a shot at creating a ligthweight library that could rely on Electron and > be available in GO. > > I've started it this week-end so this is still in beta but in a nutshell, > here's what it already does: > > - on start it provisions the necessary dependencies (electron and a custom > electron app I've made in NodeJS that provides an API over TCP). This means > that worst case scenario it downloads the distributions and unzips them. Best > case scenario (and thanks to the possibility of setting your own Provisioner) > you can embed the distributions in your binary using go-bindata and only > unzip them if they're not already set up. > - then you're good to go and can create windows and interact with them: move, > resive, maximize, close, etc. > - each window is a browser therefore you can either load static .html files, > a remote URL or the local GO server you've just started :D > - you can communicate between your GO app and the javascript in you server > - did I mention this is cross-platform? :D > > Here's the architecture of the project: > > +-------------+ TCP +---------------------+ IPC > +---------------------+ > + your GO app |<--------->+ custom Electron app +<-------->+ win1: > (HTML/JS/CSS) + > +-------------+ +---------------------+ | > +---------------------++ > | | +---->+ win2: > (HTML/JS/CSS) + > | +----------+ | | > +---------------------++ > +---------+ Electron +--------+ +-->+ win3: > (HTML/JS/CSS) + > +----------+ > +---------------------+ > > I'd like to use this beta version to see if people are interested in that > sort of project. If so, I'll dedicate more hours to add more features. Let me > know in the comments section. > > Of course I welcome any kind of contributions, may it be finding bugs or > proposing enhancements. > > Long live Golang! > > Cheers > Asticode > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.