Thanks for the good work! Recently, I'm working on making a desktop app with astilectron. Now I'm going over the code of go-astilectron-demo. It works perfectly meeting my needs. The question is that How can I debug the code when the bundler is used? Can I println my custom debug message to a console window? I just run the main.go with the command like go run main.go and it says
undefined: Asset undefined: AssetDir undefined: RestoreAssets undefined: handleMessages I know those are provided by bundler but I don't know how to debug the code effectively. 2017년 4월 26일 수요일 오전 4시 54분 22초 UTC+9에 Asticode님이 작성: > 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/a202fc36-05a2-4068-a1f1-b8f30f6e5653n%40googlegroups.com.