7 # read go version from go.mod file
8 version=$(grep '^go' go.mod | grep -Eo '[0-9]\.[0-9]+')
10 echo "Download go $version"
11 curl -L "https://go.dev/dl/go$version.linux-amd64.tar.gz" | sudo tar -C /usr/local -zxf -
13 export PATH=$PATH:/usr/local/go/bin
15 echo "Download project deps"