Import re-formatter
This repository has been archived on 2023-11-08. You can view files and clone it, but cannot push or open issues/pull-requests.
Go to file
jolheiser 318f5c0d77
Initial commit
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2020-05-06 17:05:00 -05:00
.gitignore Initial commit 2020-05-06 17:05:00 -05:00
Makefile Initial commit 2020-05-06 17:05:00 -05:00
README.md Initial commit 2020-05-06 17:05:00 -05:00
go.mod Initial commit 2020-05-06 17:05:00 -05:00
go.sum Initial commit 2020-05-06 17:05:00 -05:00
imp.go Initial commit 2020-05-06 17:05:00 -05:00
main.go Initial commit 2020-05-06 17:05:00 -05:00
struct.go Initial commit 2020-05-06 17:05:00 -05:00

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
  • --exclude can be used multiple times to set directories to exclude
  • --verbose will print out extended information