Skip to content

Commit

Permalink
go
Browse files Browse the repository at this point in the history
  • Loading branch information
opcache committed Oct 24, 2019
1 parent 423c7d9 commit 780f007
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions go/go.install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
cd /opt/
##wget https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz
##wget https://dl.google.com/go/go1.12.12.linux-amd64.tar.gz
##
##wget https://studygolang.com/dl/golang/go1.13.3.linux-amd64.tar.gz
wget https://studygolang.com/dl/golang/go1.12.12.linux-amd64.tar.gz
tar zxvf go1.12.12.linux-amd64.tar.gz
mkdir -p /opt/gopath/bin
mkdir -p /opt/gopath/src
cat >>/etc/profile<<EOF
export GOROOT=/opt/go
export GOPATH=/opt/gopath
export PATH=\$PATH:/opt/gopath/bin:/opt/go/bin
EOF
source /etc/profile
go version

0 comments on commit 780f007

Please sign in to comment.