Import re-formatter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jolheiser 81144edfe4
Updates
2 months ago
.woodpecker Updates 2 months ago
format Updates 2 months ago
.gitignore Updates 2 months ago
.goreleaser.yaml Updates 2 months ago
.impignore Convert to glob-file for exclusions 2 years ago
README.md Updates 2 months ago
go.mod Updates 2 months ago
go.sum Updates 2 months ago
imp.go Updates 2 months ago
main.go Updates 2 months 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
  • --ignore reads a .impignore file for globs to include/exclude (.impignore by default)

.impignore format

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