cweill / gotests

Automatically generate Go test boilerplate from your source code.
Apache License 2.0
4.92k stars 346 forks source link

`go install github.com/cweill/gotests@v1.6.0`: package github.com/cweill/gotests is not a main package #189

Closed cold-bin closed 3 months ago

cold-bin commented 3 months ago

go install github.com/cweill/gotests/gotests@v1.6.0 is good

jabielecki commented 3 months ago

Unclear. Is there any place in the documentation that suggested this command? Or are you suggesting a nice-to-have?

double12gzh commented 3 months ago

Per installation in README.md go get -u github.com/cweill/gotests/... works well for me. First, I need to change into the project, where go.mod is placed. Then run command go get -u github.com/cweill/gotests/... .

But there is only a tiny problem, after run the command, the gotests still cannot be found in GOBIN or GOPATH or PATH, I have no choice but clone the gotests repository and build the gotests bin locally

cold-bin commented 3 months ago

Unclear. Is there any place in the documentation that suggested this command? Or are you suggesting a nice-to-have?

I want to say that I can download a definitive version using the way