1. Go environment configuration under Windows

  • download link
    • 386 stands for 32-bit operating system installation package
    • amd64 stands for 64-bit operating system installation package
  • Download the go1.15.5.windows-amd64.zipinstallation package, unzip and configure the system environment variables
    • GOROOT:C:\Software\Go: The storage path of the above installation package
    • GOPATH:C:\Software\GoPath: The storage directory of the development project
    • Will be %GOROOT%\binadded to the Path system variable
    • Will be %GOPATH%\binadded to the Path system variable (plus this third-party go tool can be used)
  • Check whether the configuration is successful in the dos terminal
go env  # 查看得到go的配置信息
go version  # 查看go的版本号

Guess you like

Origin blog.csdn.net/MoLiao2046/article/details/110238809