Go language environment variable understanding

The address of the wget -c package for go installation

Unzip the file

tar -C where you want to put it (home) -xzf package name

Gopath should be located in the src, pkg, bin directory. They are used to store source code, compiled intermediate code, and compiled executable code.

go/bin is added to Path.

export PATH=$PATH:/home/go/bin

Guess you like

Origin blog.csdn.net/zhuiyunzhugang/article/details/110122129