This is a creation in Article, where the information may have evolved or changed.
Have been watching rust recently, grammar is very headache, just take advantage of 1.0 before the release of a period of time, come back to play Golang.
Golang Grammar is very simple, liteide and become more and more useful, so learning Golang will not take you much time, but also be able to awake to rust dizzy mind, haha.
Although the development of WinForm is no longer popular, but it is very suitable for practiced hand, writing gadgets is also very cool, less nonsense, Golang UI Library is the famous Andlabs UI, the star number on GitHub has reached 1946, quite impressive. This is a cross-platform UI library that can run on Windows/linux/mac and is quite exciting.
I follow GitHub's tips to install Golang on a machine that has been reinstalled and run a WinForm program that shows that the library is available, but there are still a few problems.
It is recommended to download Golang the latest installer or compression package on the GOLANGTC website, as well as Liteide
Golang:
Http://www.golangtc.com/static/go/go1.4.1.windows-386.msi
Liteide:
Http://www.golangtc.com/static/liteide/X27/liteidex27-1.windows.zip
Git.exe Download Address:
Https://s3.amazonaws.com/github-cloud/releases/325827/e8237682-8701-11e4-9dbe-7fb433262871.exe? response-content-disposition=attachment%3b%20filename%3dgit-1.9.5-preview20141217.exe& response-content-type=application/octet-stream&awsaccesskeyid=akiaistnzfovbijmk3tq&expires=1423830869 &signature=zipmgfx0ftvasxyjjekf2db2bni%3d
With a simple GUI, very useful, home travel must.
MinGW installation (with CGO):
http://jaist.dl.sourceforge.net/project/mingw-w64/Toolchains%20targetting%20Win32/Personal%20Builds/ Mingw-builds/installer/mingw-w64-install.exe
1. Golang after the installation is complete, configure the GOPATH environment variable, which does not need to say much. Run go env,ok in cmd.
2. Git is installed correctly, and by ticking the command in window cmd, the directory is added to the PATH environment variable.
Liteide directly decompression, find LiteIde.exe, directly run on OK.
3. Install MinGW, double-click Run, follow the default option, install to end.
4. Go get UI Package
In the console enter go get github.com/andlabs/ui, wait a few minutes. If no error occurs, OK.
If there is an error indicating that there is a disturbance, GCC is not successful, look closely at the environment variables, whether there are other versions of GCC or DLL with the same name, such as I have installed Haskell, environment variable settings MinGW Bin directory before, so called Haskell GCC, it is wrong. Adjust the bin directory of the MinGW to the front of the PATH environment variable, OK.
5. After the completion of the work, use Liteide to create a new go file, according to tutorial code copy, click Bulld and run, you can see a form. I changed it a little bit and then popped a form. The code is more comfortable to write.
The above is the UI comes with a demo, the author lazy, and does not enumerate the full control, the example is few.
Now the biggest problem is the failure area redraw problems, often see the Whiteboard form, the author of the current energy may not be in these details, after all, the UI library is the most difficult in all frameworks, time-consuming laborious, have a lot of patience. It's much more difficult than a lost web frame. I hope the author will hold on and hang on. ,
The author said, this life must insist on the desktop UI, let me very touched ...,
I am also a golang beginner, Golang is currently just as the API Colud tool for the mobile app backend. Other aspects have not realized the benefits of Golang, and was attracted by rust, had to endlessly toss down.