Install go under Mac

Source: Internet
Author: User
Tags install go
This is a creation in Article, where the information may have evolved or changed.


1. Download and install the Go language

2. Environment variables and working directory settings

3. Download and install sublime text 3

4. Download and install Liteide


First, go to download page

Http://www/golangtc.com/download

Download and then unzip to the specified directory

Second, the environment variable configuration

1) Open the file using the editor ~/.bash_profile

2) Add the following at the end (set according to the actual situation):

Export Gopath=~/applications/go #此为全局工作目录

Export Goroot=~/documents/go #此为之前的go包放置的目录

Export Path=${path}: $GOROOT/bin: $GOPATH/bin

3) Execute source ~/.bash_profile make settings effective

4) Enter Go version in the terminal to view versions

5) Go env to see the relevant environment variables of GO

6) Create three directories under working directory for src Pkg bin where all the source code is to be placed under SRC

Third, download the address of sublime text 3 HTTP://WWW.SUBLIMETEXT.COM/3

Iv. download liteide Download address: http://www.golangtc.com/download/liteide


copyright notice: This article for Bo Master original article, without Bo Master permission not reproduced.

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.