Skip to content

inherelab/goenv

Repository files navigation

GoEnv

GitHub go.mod Go version Unit-Tests GitHub tag (latest SemVer) Go Reference Go Report Card

Go multi version env manager

  • features TODO

goenv

中文说明

Install

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

Usage

Run goenv for see available commands

goenv

Switch

Switch Go to another version

goenv switch 1.16

Or:

goenv use 1.16

preview(on MacOS)

Install

Install new version

goenv install 1.18

Update

goenv update 1.18

Uninstall

goenv uninstall 1.18

Info

goenv info

List

goenv list
# or
goenv ls

Development

Clone

go clone https://github.com/inherelab/goenv
cd goenv

Run

go run ./cmd/goenv

Install

go install ./cmd/goenv

Base on

LICENSE

MIT