25 lines
532 B
Markdown
25 lines
532 B
Markdown
# imp
|
|
|
|
imp is an opinionated import formatter
|
|
|
|
The order it follows is:
|
|
```text
|
|
import (
|
|
<stdlib>
|
|
|
|
<this module's packages>
|
|
|
|
<other module's packages>
|
|
)
|
|
```
|
|
|
|
imp includes three flags:
|
|
|
|
* `--write` will write out the formatting rather than printing
|
|
* `--ignore` reads a `.impignore` file for globs to include/exclude (`.impignore` by default)
|
|
|
|
|
|
### `.impignore` format
|
|
|
|
The `.impignore` file follows a [globber format](https://gitea.com/jolheiser/globber),
|
|
which closely resembles a traditional `.gitignore` file. |