Closed mbeacom closed 2 years ago
I will study it.
@winlinvip @mbeacom I found the easy solution. Just run goimports -w .
on the root of the repo. It will format all the codes and write the changes to the file.
@winlinvip goimports -w .
against the project root will replicate the changes proposed in #60
Thanks @Akagi201
Got it
With
goimport
, all of the imports will be restructured to adhere to golang import package precedence and ordering by https://godoc.org/golang.org/x/tools/cmd/goimports to make it a little cleaner