How to install go

1 .下载 到 下载linux包
PS 可能被社会主义墙了

2.安装 配置
extract it into /usr/local, creating a Go tree in /usr/local/go. For example:

Choose the archive file appropriate for your installation. For instance, if you are installing Go version 1.2.1 for 64-bit x86 on Linux, the archive you want is called go1.2.1.linux-amd64.tar.gz.

(Typically these commands must be run as root or through sudo.)

tar -C /usr/local -xzf go$VERSION.$OS-$ARCH.tar.gz

Add /usr/local/go/bin to the PATH environment variable. You can do this by adding this line to your /etc/profile (for a system-wide installation) or $HOME/.profile:

cp /etc/profile /etc/profile_evanbak
echo 'export PATH=$PATH:/usr/local/go/bin' >>/etc/profile


How to install golang on kali
查看到 go在 packages 中为 golang

于是在 kali 中安装为

sudo apt install golang -y