Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Golang

  1. Obtain the source package.
    1
    2
    3
    cd /opt/
    wget https://dl.google.com/go/go1.14.1.linux-arm64.tar.gz
    tar -C /usr/local/ -xf go1.14.1.linux-arm64.tar.gz
    
  2. Configure the environment variables.
    1
    export PATH=$PATH:/usr/local/go/bin
    
  3. Configure the GOPROXY.
    1
    2
    go env -w GO111MODULE=on
    go env -w GOPROXY=https://goproxy.io,direct
    
  4. Check that Go has been installed.
    1
    go version
    

    Run the go env command to view the Golang configuration information.