golangver

Go’s distributive version manager (knitted myself with love 🙂

Requirements

Already installed Go distributive ¯\_(ツ)_/¯
https://go.dev/doc/install 🤷

Installation

go get github.com/nordicdyno/golangver

How to

show Go distributives: all available locally, all latest Y-minor version with latest Z path 1.Y.Z available remotely:

golangver list -r

# Output:
downloaded by `go install`:
  1.18beta2   /Users/user/sdk/go1.18beta2/bin/go
* 1.17.6      /Users/user/sdk/go1.17.6/bin/go
  1.17.3      /Users/user/sdk/go1.17.3/bin/go

# remote Go versions:
  1.18beta2	https://go.dev/blog/go1.18beta2
  1.17.6	https://golang.org/doc/devel/release#go1.17
  1.16.13	https://golang.org/doc/devel/release#go1.16
  1.15.15	https://golang.org/doc/devel/release#go1.15
  1.14.15	https://golang.org/doc/devel/release#go1.14
  1.13.15	https://golang.org/doc/devel/release#go1.13

show all available Go distributives locally:

golangver list

show all available Go distributives locally and remotely (with morally outdated stuff <1.13):

golangver list -r -a -o

install go distributive:

golangver install 1.16.9

use version locally by version:

golangver install 1.16.9

use version by binary path:

golangver use /Users/user/sdk/go1.17.6/bin/go

GitHub

View Github