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.
 
 
John Olheiser c75ed4762a Update 'go.mod' (#1) 2 months ago
.gitignore Initial commit 1 year ago
.impignore Convert to glob-file for exclusions 1 year ago
Makefile Initial commit 1 year ago
README.md Add example to README 1 year ago
go.mod Update 'go.mod' (#1) 2 months ago
go.sum Convert to glob-file for exclusions 1 year ago
imp.go Convert to glob-file for exclusions 1 year ago
main.go Convert to glob-file for exclusions 1 year ago
struct.go Initial commit 1 year 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.

Example

jolheiser/sip#17