20 lines
388 B
Markdown
20 lines
388 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
|
||
|
* `--exclude` can be used multiple times to set directories to exclude
|
||
|
* `--verbose` will print out extended information
|