If you're working with inexperienced programmers (and some experienced but bad programmers), you should be certain that they WILL let that code garbage there if the compiler allow it.
Having custom functionality in editors to work around this apparently dogmatic design decision in the core language.. is also just absurd.
In any case, every language has a hoop to jump through. Good luck finding one without.
> godep helps build packages reproducibly by fixing their dependencies
A more modern implementation: https://github.com/munificent/vigil
Since we have version control now, I don't see any threat from an optional capacity for the compiler to destructively mutate the source as an optional feature. Let the same toolchain that converts input to output suggest improvements to the input.
Please don't refuse to compile just because there are unused imports.
Please do warn, and loudly say it's NON-CONFORMANT or whatever will embarass me enough from sharing my piece of Go code with someone else.. but.. can I please just run my code, in private, when experimenting?