This is a creation in Article, where the information may have evolved or changed.
First step: Go environment and configuration
1. Install the Go Development environment (omitted), assuming the Go installation directory is C:\Go
2, configure the environment variables, the following two environments do not add.
Data reference: http://studygolang.com/articles/4454 (be sure to refer to, configure the variable he said more detailed)
Description: Gopath is a working directory and can have multiple. For specific instructions, see the reference website
Goroot installation directory for GO development environment
Then configure the path
There may be two path, I mainly use the above, but still added; C:\Go\bin is the bin directory under the Go Development environment directory.
Step Two: Run the program
Reference URL: http://studygolang.com/articles/4454
1, installation sublime Text3 (omitted)
2, Sublime Install the package Control
Shortcut key: Press CTRL +' Paste the following to enter
' Package Control.sublime-package ' ' WB ' ' http://sublime.wbond.net/ ' + pf.replace (','%20'). Read ())
View Code
3, Installation Gosublime
Shortcut key: Ctrl+shift+p
Enter the Install package return
Enter Gosublime carriage return
4. Simple Go Program
Package main " FMT " func Main () { fmt. Println ("Hello,World") }
5, compile, run
compile: Key ctrl+B input Go build hello.go run: Ctrl+B input go run hello.go
View Code
Finally say, notepad++ also can run Go development project, interested can Baidu search.