This repository has been archived on 2022-08-09. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
John Olheiser c75ed4762a Update 'go.mod' (#1)
Reviewed-on: #1
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-committed-by: John Olheiser <john.olheiser@gmail.com>
2021-08-11 08:26:08 +08:00
.gitignore Initial commit 2020-05-06 17:05:00 -05:00
.impignore Convert to glob-file for exclusions 2020-05-06 20:00:12 -05:00
go.mod Update 'go.mod' (#1) 2021-08-11 08:26:08 +08:00
go.sum Convert to glob-file for exclusions 2020-05-06 20:00:12 -05:00
imp.go Convert to glob-file for exclusions 2020-05-06 20:00:12 -05:00
main.go Convert to glob-file for exclusions 2020-05-06 20:00:12 -05:00
Makefile Initial commit 2020-05-06 17:05:00 -05:00
README.md Add example to README 2020-05-07 01:22:56 +00:00
struct.go Initial commit 2020-05-06 17:05:00 -05:00

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