Open
Description
I often get warnings in my golang projects that my import blocks are duplicates and should be refactored. Unfortunately, that's not how golang works - everything a file references must be imported, there are no transitive imports.
A codeblock like:
package mypackage
import (
"fmt"
"anotherpackage"
)
Will often occur in many files and the only way to get rid of duplication would be to put everything in one file which is a horrible way to improve maintainability
Metadata
Assignees
Labels
No labels