Compare commits

...

2 Commits

Author SHA1 Message Date
sudo pacman -Syu 01da9ebb16 chore: remove buggy side effect 2023-01-17 12:00:20 +07:00
sudo pacman -Syu a38b02f135 chore(changelog): generate v0.0.3 2023-01-17 11:58:13 +07:00
2 changed files with 35 additions and 3 deletions

View File

@ -1,5 +1,39 @@
# CHANGELOG
## v0.0.3 (2023-01-17)
### Added
- feat: ignore empty imports (2023-01-17)
- feat: switch to use dst (2023-01-17)
### Fixed
- fix: panic if format import spec empty (2023-01-17)
### Others
- chore: reformat a little bit (2023-01-17)
- chore: use bytes.Equal instead of bytes.Compare (2023-01-17)
- chore: add make clean (2023-01-17)
- chore(deps): bump golang.org/x/tools from 0.4.0 to 0.5.0 (2023-01-05)
- chore(deps): bump github.com/urfave/cli/v2 from 2.23.6 to 2.23.7 (2022-12-12)
- chore(deps): bump golang.org/x/tools from 0.3.0 to 0.4.0 (2022-12-07)
- chore(deps): bump github.com/urfave/cli/v2 from 2.23.5 to 2.23.6 (2022-12-05)
- chore: more comment (2022-11-28)
- chore: fix typo (2022-11-28)
- chore(changelog): generate v0.0.2 (2022-11-28)
## v0.0.2 (2022-11-28)
### Added

View File

@ -17,9 +17,6 @@ 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 import).
That why I suggest you need to re-format after.
## Install
With Go version `>= 1.16`:
@ -65,3 +62,4 @@ import (
- [goimports](https://pkg.go.dev/golang.org/x/tools/cmd/goimports)
- [mvdan/gofumpt](https://github.com/mvdan/gofumpt)
- [incu6us/goimports-reviser](https://github.com/incu6us/goimports-reviser)
- [dave/dst](https://github.com/dave/dst)