First, install Go
If the environment is already configured, this step is omitted ...,
1. Download and install the Go SDK
2. Configure Environment Variables(1). New variable name: GOBIN variable value: F:\Go\bin(2). New variable name: Goarch variable Value: 386if the value of the 64-bit system variable is AMD64 (3). New variable name: GOOS variable Value: Windows(4). New variable name: Goroot variable value: F:\Go(5).new variable name: Gopath variable value: E:\gows Gows is your project directory.(6). Edit path at the end of the variable value of path plusF:\Go\bin
<ignore_js_op>
go1.png (64.77 KB, download number: 341)
Download attachments
2013-7-23 13:39 Upload
Second, installationSublime Text
1. Download Sublime Text 3 and install it. The address is as follows:http://www.sublimetext.com/ Note: Sublime is a fee-free software, not registered can also be used normally, just save the number of times to a certain amount of time will be prompted to buy, after ignoring the normal use.
2. Installing Package-ctrl
Enter under View->show console
import urllib.request,os; pf = ' package control.sublime-package '; IPP = Sublime.installed_packages_path (); Urllib.request.install_opener (Urllib.request.build_opener (Urllib.request.ProxyHandler ())); Open (Os.path.join (IPP, PF), ' WB '). Write (Urllib.request.urlopen (' http://sublime.wbond.net/' + pf.replace (', '%20 ')) . Read ())
Enter, restart sublime after success.
Third, install gosublime, sidebarenhancements and go Build
1.Press CTRL +shift+p to open the package CtrlEnter the install package and press ENTER.will go to the installation page.
inputGosublime Locate and then enter install .
<ignore_js_op>
3.png (18.43 KB, download count: 332)
Download attachments
2013-7-22 18:01 Upload
2. Follow step 1 to install sidebarenhancements and Go Build.
iv. installation of
Gocode can go to github download https://github.com/nsf/gocode.git (need to install GIT version management tool), configure GIT environment variable:; C:\Program Files\git\bin; C:\Program Files\git\libexec\git-core; Open the console and enter the following:
Go get-u github.com/nsf/gocodeGo install github.com/nsf/gocodeafter the installation is complete, we can find an extra Gocode file in the Go/bin directory. (Be sure to put it in the bin directory) Well, so far, the development environment has been built.
Open Sublime Text 3, create a new test.go, and write the following code:Press CTRL + B to enter go run Test.go compile and view the results. <ignore_js_op>
g3.png (20.43 KB, download times:)
Download attachments
2013-7-22 18:06 Upload
After installation, say the problem encountered, convenient Yimeimei: 1.SidebarEnhancements in the install package can not find, need to download from the outside, and then put into the sublime text3\data\packages inside, and then in sublime preference/ Select packages inside the browse package 2. Install gocode that step, go get-u github.com/nsf/gocode These two commands in the console input does not respond, under the CMD line, and to remove the Goarch GOOS These two environment variables, otherwise it will show windows/386 must be bootstrapped using Make.bat 3. You can create a new go compiler in the sublime tool, and then press Ctrl+b to compile automatically, if there is a main.go inside the main package that has a main function ... 4. There is a Chinese cracked version, I do not know that this is not suitable ... |
Sublime Text 3 to build the Go development environment (Windows)