Import re-formatter
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.
jolheiser 08f9985010
ci/woodpecker/push/goreleaser Pipeline was successful Details
ci/woodpecker/tag/goreleaser Pipeline was successful Details
fix: check for single import
Signed-off-by: jolheiser <john.olheiser@gmail.com>
5 months ago
.woodpecker Updates 10 months ago
format fix: check for single import 5 months ago
.gitignore Updates 10 months ago
.goreleaser.yaml Updates 10 months ago
.impignore Convert to glob-file for exclusions 3 years ago
README.md Updates 10 months ago
go.mod Updates 10 months ago
go.sum Updates 10 months ago
imp.go fix: better errors and import spacing 5 months ago
main.go Updates 10 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.