sqs / goreturns

A gofmt/goimports-like tool for Go programmers that fills in Go return statements with zero values to match the func return types
Other
530 stars 55 forks source link

package github.com/sqs/goreturns: remote origin not found #48

Open art-frela opened 6 years ago

art-frela commented 6 years ago

Hello,

I tried to install... but error... package github.com/sqs/goreturns: remote origin not found

Where I missied? ))

pmutua commented 6 years ago

You need a more recent version of Go. I'd recommend 1.8.4 and above at this point.

Check the version that you have with:

go version

The run go env It shows you all the envs that are set and are not.

If you are using Linux and installed Go with apt get (which I would not recommend`) remove go with.

sudo apt-get remove golang-go
sudo apt-get remove --auto-remove golang-go

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

$ sudo rm -rf /usr/local/go
2. Install the new version

Go to the downloads page and download the binary release suitable for your system.

3. Extract the archive file

To extract the archive file:

$ sudo tar -C /usr/local -xzf /home/nikhita/Downloads/go1.8.1.linux-amd64.tar.gz
4. Make sure that your PATH contains /usr/local/go/bin
$ echo $PATH | grep "/usr/local/go/bin"