Import Group OrderingImport Group OrderingThere should be two import groups: Standard libraryEverything else This is the grouping applied by goimports by default. BadGood import ( "fmt" "os" "go.uber.org/atomic" "golang.org/x/sync/errgroup") import ( "fmt" "os" "go.uber.org/atomic" "golang.org/x/sync/errgroup")