goimports
« Back to VersTracker
Description:
Go formatter that additionally inserts import statements
Type: Formula  |  Latest Version: 0.40.0@0  |  Tracked Since: Nov 13, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: go formatter imports developer-tools code-quality
Install: brew install goimports
About:
goimports is a command-line tool that automatically updates Go import lines by adding missing imports and deleting unused ones. It also formats the code according to Go standards, ensuring consistent and clean source files. This tool is essential for maintaining correct dependencies without manual intervention.
Key Features:
  • Automatically adds missing imports
  • Removes unused imports
  • Formats code to Go standards
  • Integrates with editors and CI pipelines
Use Cases:
  • Cleaning up Go source files after refactoring
  • Ensuring consistent import management in team projects
  • Automated formatting in pre-commit hooks
Alternatives:
  • gofmt – gofmt formats code but does not manage imports automatically
  • gofumpt – stricter formatter that includes additional rules but lacks goimports' import management
Version History
Detected Version Rev Change Commit
Nov 13, 2025 5:02am 0 VERSION_BUMP d52f5bda
Oct 9, 2025 2:26am 0 VERSION_BUMP d5ba9b1f
Sep 12, 2025 1:35pm 0 VERSION_BUMP 65e522b6
Sep 10, 2025 7:06pm 0 VERSION_BUMP 52e26ea5