Skip to content

Instantly share code, notes, and snippets.

View cobb-tx's full-sized avatar

cobb cobb-tx

  • next Company
View GitHub Profile
@aofei
aofei / switchgo.sh
Last active June 2, 2024 10:13
A shell script for switching Go versions.
#!/bin/sh
set -e
if [[ $# -ne 1 ]]; then
echo "Usage: switchgo version" >&2
exit 2
fi
if [[ -z "${GOBIN}" ]]; then
echo "GOBIN is not set" >&2