Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> features like formatting, no unused imports, etc.

I personally think these should be configurables turned on by default so you kind of push the new comer to write good code and build better habits but there should be an option to disable it, make it hard to find but it should be there, especially for the people like OP and other small over-the-weekend projects.



The goimports tool can be used to automagically add and remove imports to your .go source files as you work. This streamlines the casual weekend hacking use case without compromising on the benefits of disallowing unused imports.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: