diff --git a/go_versions_all.sh b/go_versions_all.sh new file mode 100755 index 0000000..133eff9 --- /dev/null +++ b/go_versions_all.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +curl -s 'https://go.dev/dl/?mode=json&include=all' | jq -r ' +[ + "Version", "Arch", "SHA256" +], +( + .[] | + .version as $version | + .files[] | + select(.os == "linux" and (.arch == "amd64" or .arch == "arm64" or .arch == "armv6l")) | + [ + $version, + .arch, + .sha256 + ] +) | @tsv' | column -t diff --git a/go_versions_stable.sh b/go_versions_stable.sh new file mode 100755 index 0000000..ef78767 --- /dev/null +++ b/go_versions_stable.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +curl -s 'https://go.dev/dl/?mode=json' | jq -r ' +[ + "Version", "Arch", "SHA256" +], +( + .[] | + .version as $version | + .files[] | + select(.os == "linux" and (.arch == "amd64" or .arch == "arm64" or .arch == "armv6l")) | + [ + $version, + .arch, + .sha256 + ] +) | @tsv' | column -t