[GoLang] MAC installation Go language environment

Small scale chopper

  1. First install VScode software or pycharm
  2. mac install brew software 
  3. brew install go

Reported an error not providing this support 

Re-brew install go and then re-brew reinstall go

Use go version to see the version of go

use go env

 You can see the configuration after go installation

Configure an environment variable

vim ~/.zshrc,


# brew
export PATH=/opt/homebrew/bin:$PATH

# Go
export http_proxy="http://127.0.0.1:12639"
export https_proxy="http://127.0.0.1:12639"
export no_proxy=localhost,127.0.0.1,.qq.com,.tencent.com

 

Guess you like

Origin blog.csdn.net/sinat_34626178/article/details/131899430