This repository has been archived on 2023-11-08. You can view files and clone it, but cannot push or open issues/pull-requests.
imp/README.md

780 B

imp

imp is an opinionated import formatter

The order it follows is:

import (
    <stdlib>
    
    <this module's packages>
    
    <other module's packages>
)

imp includes five flags:

  • --write will write out the formatting rather than printing
  • --ignore reads a .impignore file for globs to include/exclude (.impignore by default)
  • --stdin will read from stdin and print to stdout
  • --gofumpt will also format using gofumpt
  • --gofumpt-extra will include gofumpt extra rules

.impignore format

The .impignore file follows a globber format, which closely resembles a traditional .gitignore file.