It's neat ~ could have used checks in-between to ensure e.g. `$(go env GOBIN)` is not empty.
For something more comprehensive (of course with a larger install size) and the possibility of handling not just Go, I have had good experiences with asdf [1].