1.golang Language Environment Installation

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

Install go under Mac

Easy to manage and upgrade based on Homerbrew installation

brew install go

Configuration path

vim ~/.bash_profile
#export PATHexport GOROOT=/usr/local/Cellar/go/1.8.1/libexecexport GOBIN=$GOROOT/binexport GOPATH=/Users/antic/www/goexport PATH=$PATH:$GOBIN

Let the configuration take effect immediately
source .bash_profile
Viewgo env

antic:~ antic$ go envGOARCH="amd64"GOBIN="/usr/local/Cellar/go/1.8.1/libexec/bin"GOEXE=""GOHOSTARCH="amd64"GOHOSTOS="darwin"GOOS="darwin"GOPATH="/Users/antic/www/go"GORACE=""GOROOT="/usr/local/Cellar/go/1.8.1/libexec"GOTOOLDIR="/usr/local/Cellar/go/1.8.1/libexec/pkg/tool/darwin_amd64"GCCGO="gccgo"CC="clang"GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/dw/35ddtk3n68d3p_sy3052gzr80000gn/T/go-build692262960=/tmp/go-build -gno-record-gcc-switches -fno-common"CXX="clang++"CGO_ENABLED="1"PKG_CONFIG="pkg-config"CGO_CFLAGS="-g -O2"CGO_CPPFLAGS=""CGO_CXXFLAGS="-g -O2"CGO_FFLAGS="-g -O2"CGO_LDFLAGS="-g -O2"

Development tools

    • JetBrains's Gogland

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.