github.com/incu6us/goimports-reviser/v2 (go): Tool for Golang to sort goimports by 3-4 groups: std, general, local(which is optional) and project dependencies. It will help you to keep your code cleaner.  Example:  Input:  Output:  If you need to set package names explicitly(in import declaration), you can use additional option `-set-alias`.  More:
Keywords: go|gofmt|goimports|goimports-reviser|golang|sort-goimports