Go language installation, environment variable configuration

It is recommended to use the Chinese website to download, which has faster speed   and direct download link.

After downloading, install it in a stupid way and it will be ok.

After the installation is successful, win+R, enter cmd and press Enter to open the command window.

Enter GO or go version to view the configuration and version. The display indicates successful installation.

Configure environment variables

Then configure the GOPath, which is the address where files and source code are stored.

Focus on your own GoWorks storage address! ! ! ! ! ! Three fixed folders need to be created under GoWorks

They are src, pkg, bin respectively.

 

 If you install it through the official exe fool style, this Path variable will be automatically configured. Otherwise, configure it yourself. It is also the installation address of the go language.

After the configuration is completed, enter go env on the command line to check whether the configuration is configured correctly.

If there's no problem, then it's ok

Guess you like

Origin blog.csdn.net/GSl0408/article/details/127252259