Note: now it's suggested to use mise instead. Because mise can totally replace fgm and do better, so i decide to give up this project.
this project is inspired by fnm
cargo install fgm
or cargo binstall fgm
(Suggested)
add the following to your shell profile:
eval $(fgm init)
then you can use fgm
to install go versions:
fgm install 1.16.3
fgm use 1.16.3
go version