Unable to install API with go get

y_sravan
y_sravan edited April 8 in Go client
Hi
I'm trying to follow the steps from https://github.com/zerodha/gokiteconnect
while installing with
go get github.com/zerodha/gokiteconnect/v4
getting the below error
'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'.
when I run go install -v github.com/zerodha/gokiteconnect/v4@latest
getting below output
go: downloading github.com/zerodha/gokiteconnect/v4 v4.3.2
go: downloading github.com/gocarina/gocsv v0.0.0-20180809181117-b8c38cb1ba36
go: downloading github.com/google/go-querystring v1.0.0
package github.com/zerodha/gokiteconnect/v4 is not a main package
I'm using latest go version 1.22.2
anyway to resolve this error?

Thanks
Tagged:
Sign In or Register to comment.