How to install the Go language compiler on Mac OS _golang

Source: Internet
Author: User

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 #然后输入密码就可以了

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.