gci is
a tool that controls golang package import order and makes it always deterministic.
When linting the code with golangci-lint, the changes required by the gci linter are not directly applied. One then has to manually apply them. For this get gci with
go install github.com/daixiang0/gci@latest
scan it and directly write required changes with
gci write --skip-generated -s standard,default .
--skip-generated skips generated files
-s standard,default defines how import inputs are processed. standard are all official Golang provided imports, default are all other ones.