incu6us / goimports-reviser

Right imports sorting & code formatting tool (goimports alternative)
MIT License
611 stars 72 forks source link

Add ability to add named imports in a separate group #116

Closed ustun-ed closed 6 days ago

ustun-ed commented 1 year ago

We have the following internal code style:

Example:

import (
    "context"
    "fmt"
    "time"

    "github.com/ourcompany/ourcompany/pkg/log"
    "github.com/ourcompany/ourcompany/pkg/percentile"

        "github.com/google/go-cmp/cmp"

    svc "github.com/ourcompany/ourcompany/pkg/aggregator_service"
)

Could you add support for the final named imports group?

ustun-ed commented 1 year ago

Added a draft PR above.

incu6us commented 6 days ago

@n-oden added it