It looks like you're new here. If you want to get involved, click one of these buttons!
go get github.com/zerodha/gokiteconnect/v4
'go get' is no longer supported outside a module.when I run
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'.
go install -v github.com/zerodha/gokiteconnect/v4@latest
go: downloading github.com/zerodha/gokiteconnect/v4 v4.3.2I'm using latest go version 1.22.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
go install -x github.com/zerodha/gokiteconnect/v4@latest
kiteconnect
package. Thego install
command is typically used for installing packages with main packages, so in this case, it would be more appropriate to usego get
.Also, it's recommended in Go to create a separate workspace and initialize go module to track your project's dependencies. Once initialized, you can then use
go get
to manage dependencies. This will fetch and install the latest version of the gokiteconnect package: Go lang documentation here explains in detail.