Go Api for Electron
Go Api for Electron.
Feel free to fork and make your own changes if needed.
A list of boilerplate projects using gotron.
go1.11 with modules enabled, nodejs and npm must be available on your system.
On the first run it will download Electron and stores it in .gotron in your working directory.
…Send event to backend
ws.send(JSON.stringify({
"event": "event-name",
"AtrNameInFrontend": "Hello World!",
}))To package a go application together with electornjs use gotron-builder.
We provide executables for Linux, MacOS and Windows.
Download the newest release from https://github.com/Equanox/gotron/releases and add it to your $PATH.
It expects...
By default it will implicitly use...
To pack the code from Quick Start use
gotron-builderin the root of your repo.
Pass your go code and webUI explicitly.
gotron-builder --go=your/go/dir --app=your/webapp/dirFor cross compilation you can use the same flags as electron-builder would expect them
gotron-builder --win Read about the requirements for cross-compilation in electron-builders documentation.
MIT
Except Roboto (ui/js/src/Roboto-Light.ttf , ui/react/src/Roboto-Light.ttf) which is licensed under Apache 2.0
https://github.com/google/roboto
No open issues yet, or sync has not completed.