ipinfo/go

go get install method is deprecated

Closed this issue · 1 comments

vay3t commented
$ go get github.com/ipinfo/go/v2/ipinfo
go: go.mod file not found in current directory or any parent directory.
        'go get' is no longer supported outside a module.
        To build and install a command, use 'go install' with a version,
        like 'go install example.com/cmd@latest'
        For more information, see https://golang.org/doc/go-get-install-deprecation
        or run 'go help get' or 'go help install'.

You have to install it in the context of your own Go project which has a go.mod at the root. It works fine for me when I do that:

$ go get github.com/ipinfo/go/v2/ipinfo
go: downloading github.com/patrickmn/go-cache v1.0.0
go get: added github.com/ipinfo/go/v2 v2.6.0