I used the Mac Mini, and then I installed it on the top of the sublime Text2 plugin is still go sublime and went build these two are not introduced, because previously introduced the installation, go Mac OS Installation package can be directly under the download address is http:// Code.google.com/p/go/downloads/list?q=opsys-osx+type-installer, according to your own computer to speak, download the corresponding can be. And then directly installed, after installation or configuration environment variables, general Linux above all this is
CD
ls-a #显示的用户环境变量是. Bashrc,unix bash_profile
vim. Bash_profile
Export path=/users/widuu/golang:$ PATH #一定要添加后边的 $PATH, it's important, I forgot to add: $PATH Results command can not be used
source. bash_profile
And then we'll write a code to test
Package main
Import std "FMT"
Type a person string
func main () {
var this woman's a person
this woman = "one's wife"
std. PRINTLN (this woman's)
std. Println ("Hello word")
}
Result output A person's wife Hello word this proves you can start playing.
MAC OS basically the computer can do the development in this, basically all you can do, you do php Android iOS and so on, using Linux remote connection
SSH root@192.168.1.14 #然后输入密码就可以了