Answer the question
In order to leave comments, you need to log in
How to create a gui application in go?
It is necessary to create a simple application on go without downloading 500 MB of additional libraries. Is it real?
Answer the question
In order to leave comments, you need to log in
For a simple UI, or for a complex one if you like HTML5/CSS you can use https://github.com/zserge/webview
This is a thin wrapper over gtk-webkit, Cocoa-Webkit and MSHTML (IE10-11). Allows you to create a full-screen webview window and use JS bindings to connect the UI with the application logic. You can execute arbitrary JS code in a UI from Go, and you can call a Go function from JS.
Unlike Electron, the size of the binaries will be about 5-10MB, and the memory consumed by the application is also somewhere in this range.
It is recommended to use some wrapper libraries around GTK+ or QT.
I don’t know how it is now, but back in the summer, libraries for writing GUIs written directly on Go itself were in all sorts of beta / alpha.
https://github.com/lxn/walk/
A simple library.
Download:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question