This is a creation in Article, where the information may have evolved or changed.
A GUI open source project in go language https://github.com/andlabs/ui
1 Install MINGW-W64 link address:
http://mingw-w64.sourceforge.net/download.php
2 Liteide configuration:
# Native Compiler Windows 386
Goroot=c:\go
Gobin=%goroot%\bin
Goarch=386
Goos=windows
Cgo_enabled=1
Path=C:\Program files\mingw-w64\i686-4.9.2-win32-dwarf-rt_v3-rev1\mingw32\bin; %goroot%\bin;%path%
#GOPATH =c:\go
Liteide_gdb=gdb
Liteide_make=make
liteide_term=%comspec%
liteide_termargs=
liteide_exec=%comspec%
Liteide_execopt=/c
3 sample into the source code:
Package Mainimport ("Github.com/andlabs/ui")varwindow UI. Windowfunc Main () {Go UI. Do (func () {name:=UI. Newtextfield () button:= UI. Newbutton ("Greet") Greeting:= UI. Newlabel ("") Stack:=UI. Newverticalstack (UI. Newlabel ("Enter your name:"), name, button, greeting) window= UI. NewWindow ("Hello", $, -, Stack) button. OnClicked (func () {greeting. SetText ("Hello,"+ Name. Text () +"!")}) window. OnClosing (func ()BOOL{UI.} Stop ()return true}) window. Show ()}) Err:=UI. Go ()ifErr! =Nil {panic (err)}}
4 Effect: