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 08f9985010
ci/woodpecker/push/goreleaser Pipeline was successful Details
ci/woodpecker/tag/goreleaser Pipeline was successful Details
fix: check for single import
3 weeks ago
.woodpecker Updates 6 months ago
format fix: check for single import 3 weeks ago
.gitignore Updates 6 months ago
.goreleaser.yaml Updates 6 months ago
.impignore Convert to glob-file for exclusions 3 years ago
README.md Updates 6 months ago
go.mod Updates 6 months ago
go.sum Updates 6 months ago
imp.go fix: better errors and import spacing 1 month ago
main.go Updates 6 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.