Import re-formatter
https://git.jojodev.com/jolheiser/imp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 year ago | |
---|---|---|
.gitignore | 3 years ago | |
.impignore | 3 years ago | |
Makefile | 3 years ago | |
README.md | 3 years ago | |
go.mod | 1 year ago | |
go.sum | 3 years ago | |
imp.go | 3 years ago | |
main.go | 3 years ago | |
struct.go | 3 years ago |
README.md
imp
imp is an opinionated import formatter
The order it follows is:
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,
which closely resembles a traditional .gitignore
file.