I use NIX for this
nix-shell -p go_1_17
Pops a native shell on my system with Go installed. Nothing else on my system is affected.