This is a creation in Article, where the information may have evolved or changed.
I'm using Mac Mini and I've installed the sublime Text2 plugin is still go sublime and go build these two are not introduced, because the installation has been introduced before, 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. Then install directly, install or configure environment variables, the general Linux top is like this
[PHP]
Cd
Ls-a #显示的用户环境变量是. Bashrc,unix top is. bash_profile
Vim. Bash_profile
Export Path=/users/widuu/golang: $PATH #一定要添加后边的 $PATH, it was very important, I forgot to add: $PATH The results of the order can not be used
source. bash_profile
[/php]
And then we'll write a code test.
[PHP]
Package Main
Import Std "FMT"
Type of a person string
Func Main () {
var this woman's a man
This woman = "a man's wife."
Std. Println (This woman)
Std. Println ("Hello word")
}
[/php]
Result output A man's wife Hello word this proves you can start playing
MAC OS basically computer can do the development on this top, basic can, you do php Android iOS and so on, using the remote connection of Linux
[PHP]
SSH root@192.168.1.14 #然后输入密码就可以了
[/php]
I use a very convenient and handy feeling, I wish you a happy Mid-autumn Festival
Without permission, do not reprint this site any article: Micro network»MAC OS Installation Golang environment and some attention to things