NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Go modules, #2505 by repository stars
Latest stable
v0.14.0
Last release 8 months ago
28 Feb 2026
Release timing varies
gaps range from 8 days to 7 months
Nearly every release is documented
notes for 47 of 51 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
128 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
fix issue when duplicate imports by @daixiang0 in https://github.com/daixiang0/gci/pull/99
Full Changelog: https://github.com/daixiang0/gci/compare/v0.6.2...v0.6.3
Nothing published for this version
bump up version by @daixiang0 in https://github.com/daixiang0/gci/pull/97
Full Changelog: https://github.com/daixiang0/gci/compare/v0.6.1...v0.6.2
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Change README.md instructions from go get to go install by @omertuc in https://github.com/daixiang0/gci/pull/92
README.md instructions from go get to go install by @omertuc in https://github.com/daixiang0/gci/pull/92Full Changelog: https://github.com/daixiang0/gci/compare/v0.6.0...v0.6.1
Nothing published for this version
Order import section by config by @vorotislav in https://github.com/daixiang0/gci/pull/90
Full Changelog: https://github.com/daixiang0/gci/compare/v0.5.0...v0.6.0
Nothing published for this version
Add dot and blank sections @mnencia in https://github.com/daixiang0/gci/pull/88
Full Changelog: https://github.com/daixiang0/gci/compare/v0.4.3...v0.5.0
Nothing published for this version
Fix version output string by @oscr in https://github.com/daixiang0/gci/pull/83
Full Changelog: https://github.com/daixiang0/gci/compare/v0.4.2...v0.4.3
Nothing published for this version
This version includes some bug fixes, thanks to everyone who reported bugs, all of you make GCI better!
This version includes some bug fixes, thanks to everyone who reported bugs, all of you make GCI better!
Full Changelog: https://github.com/daixiang0/gci/compare/v0.4.1...v0.4.2
Nothing published for this version
Nothing published for this version
Nothing published for this version
Revert the default ordering, now GCI still makes imports order as below:
Revert the default ordering, now GCI still makes imports order as below:
all configs are not case sensitive
Please check README to get more details.
Nothing published for this version
Nothing published for this version
Update codes and re-enable in golangci-lint by @daixiang0 in https://github.com/daixiang0/gci/pull/64
Full Changelog: https://github.com/daixiang0/gci/compare/v0.3.3...v0.3.4
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
replace log with logrus by @glightfoot in https://github.com/daixiang0/gci/pull/52
Full Changelog: https://github.com/daixiang0/gci/compare/v0.3.2...v0.3.3
Nothing published for this version
Fix issue parsing block comments, and always retain prefix comments for cgo imports. by @charleskorn in https://github.com/daixiang0/gci/pull/49
Nothing published for this version
Nothing published for this version
Nothing published for this version
New features are coming on the occasion of the Chineses new year!
New features are coming on the occasion of the Chineses new year!
Great contribution from @ngehrsitz, thanks!
Now GCI supports three modes of operation:
$ gci print -h
Print outputs the formatted file. If you want to apply the changes to a file use write instead!
Usage:
gci print path... [flags]
Aliases:
print, output
Flags:
--NoInlineComments Drops inline comments while formatting
--NoPrefixComments Drops comment lines above an import statement while formatting
-s, --Section strings Sections define how inputs will be processed. Section names are case-insensitive and may contain parameters in (). A section can contain a Prefix and a Suffix section which is delimited by ":". These sections can be used for formatting and will only be rendered if the main section contains an entry.
Comment(your text here) | CommentLine(your text here) - Prints the specified indented comment
Def | Default - Contains all imports that could not be matched to another section type
NL | NewLine - Prints an empty line
Prefix(gitlab.com/myorg) | pkgPrefix(gitlab.com/myorg) - Groups all imports with the specified Prefix. Imports will be matched to the longest Prefix.
Std | Standard - Captures all standard packages if they do not match another section
(default [Standard,Default])
-x, --SectionSeparator strings SectionSeparators are inserted between Sections (default [NewLine])
-h, --help help for print
$ gci write -h
Write modifies the specified files in-place
Usage:
gci write path... [flags]
Aliases:
write, overwrite
Flags:
--NoInlineComments Drops inline comments while formatting
--NoPrefixComments Drops comment lines above an import statement while formatting
-s, --Section strings Sections define how inputs will be processed. Section names are case-insensitive and may contain parameters in (). A section can contain a Prefix and a Suffix section which is delimited by ":". These sections can be used for formatting and will only be rendered if the main section contains an entry.
Comment(your text here) | CommentLine(your text here) - Prints the specified indented comment
Def | Default - Contains all imports that could not be matched to another section type
NL | NewLine - Prints an empty line
Prefix(gitlab.com/myorg) | pkgPrefix(gitlab.com/myorg) - Groups all imports with the specified Prefix. Imports will be matched to the longest Prefix.
Std | Standard - Captures all standard packages if they do not match another section
(default [Standard,Default])
-x, --SectionSeparator strings SectionSeparators are inserted between Sections (default [NewLine])
-h, --help help for write
$ gci diff -h
Diff prints a patch in the style of the diff tool that contains the required changes to the file to make it adhere to the specified formatting.
Usage:
gci diff path... [flags]
Flags:
--NoInlineComments Drops inline comments while formatting
--NoPrefixComments Drops comment lines above an import statement while formatting
-s, --Section strings Sections define how inputs will be processed. Section names are case-insensitive and may contain parameters in (). A section can contain a Prefix and a Suffix section which is delimited by ":". These sections can be used for formatting and will only be rendered if the main section contains an entry.
Comment(your text here) | CommentLine(your text here) - Prints the specified indented comment
Def | Default - Contains all imports that could not be matched to another section type
NL | NewLine - Prints an empty line
Prefix(gitlab.com/myorg) | pkgPrefix(gitlab.com/myorg) - Groups all imports with the specified Prefix. Imports will be matched to the longest Prefix.
Std | Standard - Captures all standard packages if they do not match another section
(default [Standard,Default])
-x, --SectionSeparator strings SectionSeparators are inserted between Sections (default [NewLine])
-d, --debug Enables debug output from the formatter
-h, --help help for diff
Support for the old CLI style is still present if you do not specify the subcommands. The only difference is that --local requires two dashes now.
Nothing published for this version
Allow a comma-separated list of local prefixes, like goimports
New feature:
Fix:
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Catch dangling commits to fix #26.
Catch dangling commits to fix #26.
allow non-URL local package names(See #22 )
allow non-URL local package names(See #22 )
Fix v0.2.3 checksum mismatch issue.
Fix v0.2.3 checksum mismatch issue.
- remove extra space - refactor gci.Run
delete duplicate blank in comment
Nothing published for this version
Nothing published for this version
fix panic if comment occur in the last line
Bug fix:
-d option does not workNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.