4 BASEURL
=https
://golang.org
/dl
/
9 echo "No version supplied"
13 curl
-s "${BASEURL}?mode=json&include=all" | \
14 jq
'.[] | select(.version == "go'${VERSION}'")' | \
15 jq
-r '.files[] | select(.kind == "archive" and (.os == "linux" or .os == "darwin")) | (.os + "-" + .arch + " = \"" + .sha256 + "\";")'