I have a project currently organized something like this:
~/code/go /bin /pkg /src /proj/main.go /some_packa
The command gofmt ./...
mentioned by some, does not work on Windows (at least on my Win7).
Instead of it, I used gofmt -d .\
which works recursively. I use the -d
flag because I want to list the changes I need to make in order to pass the check.
NB: golint ./...
does work on Windows, just gofmt ./...
doesn't.