MAC OS Installation Golang environment and something to note

Source: Internet
Author: User
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

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.