下载
wget https://studygolang.com/dl/golang/go1.12.1.linux-amd64.tar.gz
环境配置
export GOROOT=/usr/local/go
export GOPATH=/opt/workspace/code/golang
export GOBIN=
G
O
R
P
A
T
H
/
b
i
n
e
x
p
o
r
t
P
A
T
H
=
GORPATH/bin export PATH=
GORPATH/binexportPATH=PATH:
G
O
P
A
T
H
:
GOPATH:
GOPATH:GOROOT:$GOROOT/bin
dep安装
go get -u github.com/golang/dep/cmd/dep