Go multi version env manager
- features TODO
Curl install
curl https://github.com/inherelab/goenv/releases/latest/download/goenv-linux-amd64 -L -o /usr/local/bin/goenv
chmod a+x /usr/local/bin/goenv
TIPs: notice replace the OS and arch on
goenv-linux-amd64
Use go install
go install github.com/inherelab/goenv/cmd/goenv
Run goenv for see available commands
goenv
Switch Go to another version
goenv switch 1.16
Or:
goenv use 1.16
preview(on MacOS)
Install new version
goenv install 1.18
goenv update 1.18
goenv uninstall 1.18
goenv info
goenv list
# or
goenv ls
go clone https://github.com/inherelab/goenv
cd goenv
go run ./cmd/goenv
go install ./cmd/goenv