user280179
user280179

Reputation: 83

After go vet occurs named files must all be in one directory;

After using go vet **/*.go occurs named files must all be in one directory; What i need to do to fix it?My project structure looks like.

Upvotes: 3

Views: 7522

Answers (2)

Kisinga
Kisinga

Reputation: 1729

In case someone encounters this recently, make sure there are no go files at the root level when running any command with **/*.go, otherwise change it to *.go

Upvotes: 0

CallMeLoki
CallMeLoki

Reputation: 1361

./... is the way golang treat a tree recursively. try go vet ./... instead

Upvotes: 7

Related Questions