You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having imports at the top of the file is a common convention, and makes it easier to analyze the dependency structure at a glance.
Scrolling to the top of the file can be tedious and sloppy developers like myself may sometimes paste the import near the function they are writing and forget to move it to the top.
It would be pleasant to simply paste the import statement in the right scope and have it moved to the top on format. No need to change the order of imports in the file so this has no impact on semantics I think. This is useful for large files which unfortunately happen.
{
"fmt": {
"ImportsAtTopOfFile": true
},
}
The text was updated successfully, but these errors were encountered:
Having imports at the top of the file is a common convention, and makes it easier to analyze the dependency structure at a glance.
Scrolling to the top of the file can be tedious and sloppy developers like myself may sometimes paste the import near the function they are writing and forget to move it to the top.
It would be pleasant to simply paste the import statement in the right scope and have it moved to the top on format. No need to change the order of imports in the file so this has no impact on semantics I think. This is useful for large files which unfortunately happen.
The text was updated successfully, but these errors were encountered: