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

30 lines
641 B
Markdown
Raw Normal View History

# 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
* `--imp-ignore` reads a `.impignore` file for globs to include/exclude (`.impignore` by default)
* `--verbose` will print out extended information
### `.impignore` format
The `.impignore` file follows a [globber format](https://gitea.com/jolheiser/globber),
2020-05-07 01:22:56 +00:00
which closely resembles a traditional `.gitignore` file.
### Example
https://gitea.com/jolheiser/sip/pulls/17