It's a script to update Golang version easily in linux
$ git clone https://github.com/marcos-dev88/update-go
Theres 2 flags that you can use in this project:
- -v -> Defines the version like: 1.19 (Required)
- -p -> Defines the path of your download. (Not required, but without this flag it will get the go path from your $GOROOT and $GOPATH, then, make sure that you have it defined in your .zshrc or .bashrc)
The official golang doc about GOROOT and GOPATH config: Go path doc
$ bash ./attgovers.sh -v 1.19
$ bash ./attgovers.sh -v 1.19 -p $HOME