go 相關常用命令(updateing)


 

# Go 下載
https://golang.org/dl/

 

 

# Go 安裝
tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz
vim /etc/profile
export PATH=$PATH:/usr/local/go/bin

 

# go 提速

vim    ~/.bashrc 或 ~/.bash_profile

 

# 啟用 Go Modules 功能
export GO111MODULE=on
# 配置 GOPROXY 環境變量
export GOPROXY=https://goproxy.io

https://goproxy.io/zh/

 

# 設置GO的環境變量
Edit your ~/.bash_profile to add the following line:
export GOPATH=$HOME/go
Save and exit your editor. Then, source your ~/.bash_profile.
source ~/.bash_profile

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM