chore: better explain side effect README

main
sudo pacman -Syu 2022-11-28 11:26:29 +07:00
parent 065e5ec321
commit fc717199d5
No known key found for this signature in database
GPG Key ID: D6CB5C6C567C47B0
1 changed files with 9 additions and 1 deletions

View File

@ -7,7 +7,15 @@ Then third party, then company if exist.
The last is local.
Also main selling point of this is group imports not sort imports.
So please run `gofumpt` or `gofmt` after this.
So please run `gofumpt` or `gofmt` after running this tool.
Under the hood, this tool get all imports, then group them into 4 groups (std, third party, company, local).
Remember, no sort here.
Then insert empty import (empty path) between each group to get final imports
Then update Go ast decls import with final imports.
There is side effect of course, because we do not create empty line but we add empty import, so there is trailing space in that line (Go indent that empty impoty).
That why I suggest you need to re-format after.
## Install