D
D
Dima Zherebko2015-12-12 16:32:01
go
Dima Zherebko, 2015-12-12 16:32:01

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

5 answer(s)
A
abcyu, 2015-12-13
@abcyu

Is a local website okay?

Z
zserge, 2017-10-08
@zserge

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.

A
Andrey K, 2015-12-12
@mututunus

https://github.com/therecipe/qt

K
Konstantin Dovnar, 2015-12-12
@SolidlSnake

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.

A
Artem Melnykov, 2019-07-04
@NickProgramm

https://github.com/lxn/walk/
A simple library.
Download:

spoiler
go get github.com/lxn/walk

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question