Installation

wget 'https://go.dev/dl/go1.22.4.linux-amd64.tar.gz'
tar -xvf go1.22.4.linux-amd64.tar.gz
mv go /usr/local
echo 'export PATH=$PATH:/usr/local/go/bin' >> /root/.zshrc

# Skip setting the below env variables unless errors are encountered.
# Error: go: go.mod file not found in current directory or any parent directory
go env -w GO111MODULE=auto

# Error: go: no install location for directory /home/kali/Downloads/wordlist-sanitizer outside GOPATH
go env -w GOBIN=$GOPATH/bin

Last updated