Reputation: 83
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
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
Reputation: 1361
./...
is the way golang treat a tree recursively. try go vet ./...
instead
Upvotes: 7