Download address: Go language Chinese web
Image.png
Windows installation Configuration
Download 32-bit (386) or 64-bit (AMD64) as needed;
Take the zip version for example:
- Download after decompression, guarantee and Decompression folder in the full path without Chinese and space;
- Enter the extract file and configure the bin file path to the environment variable;
- After the configuration is complete, open the DOS window or PowerShell, enter Go version, return, the version number shows that the go variable is configured successfully
Linux (Ubuntu) installation configuration
View System version: Uname-a
Take the tar.gz version as an example:
- Copy compressed package to specified directory: CP go...tar.gz/opt
- Unzip file: TAR-ZXVF go.....tar.gz
- After extracting into the bin file, enter./go version, you can see the versions
- Configuring environment variables: sudo vim/etc/profile
export GOROOT=/opt/goexport PATH=$PATH:$GOROOT/binexport GOPATH=$HOME/goproject
- Log out of the login and use go version to see if the environment variable is configured successfully