Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/cmd/goimports: does not handle package unsafe properly #14966
Please answer these questions before submitting your issue. Thanks!
I believe goimports does not automatically include package unsafe even if referenced in the source, which is fine, but when package unsafe is imported it can confuse goimports and produces syntactically correct, but unexpected output, such as:
Ran goimports on the source code http://play.golang.org/p/Ppc325UINU