Closed pythonberg1997 closed 1 year ago
For example(local module is github.com/cosmos/cosmos-sdk), I got this after run goimports-reviser:
github.com/cosmos/cosmos-sdk
goimports-reviser
import ( "encoding/json" "errors" "fmt" "net/url" "os" "path/filepath" "strconv" "strings" "time" upgradekeeper "github.com/cosmos/cosmos-sdk/x/upgrade/keeper" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" "github.com/rs/zerolog" cverrors "github.com/cosmos/cosmos-sdk/cosmovisor/errors" )
But it should be like this right?:
import ( "encoding/json" "errors" "fmt" "net/url" "os" "path/filepath" "strconv" "strings" "time" "github.com/rs/zerolog" cverrors "github.com/cosmos/cosmos-sdk/cosmovisor/errors" upgradekeeper "github.com/cosmos/cosmos-sdk/x/upgrade/keeper" upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types" )
For example(local module is
github.com/cosmos/cosmos-sdk
), I got this after rungoimports-reviser
:But it should be like this right?: