Problem Description:
The go language is a very light language and is loved by many new internet companies. So, there is time to learn this language. So, how do you build a simple go language development environment under Windows?
Problem solving:
There are two steps to building a simple go development environment:
1, go to the official website to download the SDK installation
The official website address is https://golang.google.cn/, after installing the SDK, basically can write, compile and run the Go Language program. The author uses the Windows7 system,%gopath% is configured to C:\users\[user]\go, under the directory, you can create the SRC directory under this directory, and then follow the Go Tutorial guide, create the package path folder, write programs, use go Build, go install, and execute the executable program generated below the bin.
2, install notepad++ 's go language to write plugins and configure language coloring and AutoComplete
I find a lot of places, found Baidu above to find the tutorial, the site can not be used at all. The author uses the notepad++ 7.5.8 Zip decompression version, and finally found a more reliable github:
Https://github.com/chai2010/notepadplus-go
Follow the steps described above to configure the go language coloring and code auto-completion.
Then follow the GONPP plugin:
Https://github.com/tike/GOnpp
The executable file download path is:
Https://nchc.dl.sourceforge.net/project/gonpp/GOnpp_1.2_UNI.zip
The installation method is to extract the file to get a DLL file, open notepad++, in the "set"-"Import"-"Import plug-in", select the DDL.
Restart the notepad++ when you are done.