美文网首页
Google Cloud Shell - trying Go l

Google Cloud Shell - trying Go l

作者: Star_C | 来源:发表于2018-03-29 09:20 被阅读0次

Installation

# download Go, mind the version
wget https://storage.googleapis.com/golang/go1.6.2.linux-amd64.tar.gz
# remove the old version
sudo rm -rf /usr/local/go
# unzip the tarball unto the specified directory
sudo tar -C /usr/local -xzf go1.6.2.linux-amd64.tar.gz
# add path to bash
echo "export GOPATH=~/go" >> ~/.bashrc
# execute ~/.bashrc. once in this context
source ~/.bashrc

Build

go build -o /path/of/artifact /path/of/source-code

相关文章

网友评论

      本文标题:Google Cloud Shell - trying Go l

      本文链接:https://www.haomeiwen.com/subject/fpaucftx.html