Configure import groups and ordering
masterThe tool sorts imports into groups. By default, the order is std,general,company,project. You can customize this using the -imports-order and -company-prefixes flags.
Import Groups
std: Standard library imports.general: General purpose third-party libraries.company: Inter-org or company-specific libraries (requires-company-prefixes).project: Your local project dependencies.blanked: Imports using the_alias.dotted: Imports using the.alias.
Customizing Groups
Use -company-prefixes with comma-separated values to define which packages belong to the company group. Use -imports-order to define a custom sequence of the groups listed above.
goimports-reviser -imports-order std,general,company,project,blanked,dotted -company-prefixes github.com/my-org,gitlab.com/my-org