#how to install thirdparty modules?

7 messages · Page 1 of 1 (latest)

tacit talon
#

hello everyone 🙂 noob here
how do you install third party modules
i ran $ go get github.com/spf13/cobra/cobra@latest
and got an error

go: module github.com/spf13/cobra@latest found (v1.6.1), but does not contain package github.com/spf13/cobra/cobra
toxic mural
#

remove the last /cobra

tacit talon
#

ty that added it to my go mod atleast

#

but i still don't have the cli tool

toxic mural
#

cobra is a library not a cli tool

tacit talon
#

i thought there was a cli that generated boilerplate code for you

toxic mural
#

I suggest reading the README, may answer yr question