Saturday, October 24, 2026 4,350 lists 78,096 records on file
List your app or device

  1. Home
  2. Code Formatting Tools
  3. goimports

goimports

Plans and prices

Free

Free

Open source command-line tool · BSD-3-Clause license

Every plan, in full

On the record

Directory exclusions
It reads `$GOPATH/src/.goimportsignore` to exclude directories from scanning, with blank lines, comments, or directory names and no globbing or regex patterns.pkg.go.dev · read 8 Oct 2026
Editor integrations
The documentation describes using goimports with Emacs, Vim, and GoSublime, and says it can be configured for other editors.pkg.go.dev · read 8 Oct 2026
Formatting
It formats code in the same style as gofmt and can replace an editor’s gofmt-on-save hook.pkg.go.dev · read 8 Oct 2026
Installation
The package page gives `go install golang.org/x/tools/cmd/goimports@latest` as the installation command.pkg.go.dev · read 8 Oct 2026
Intended users
The documentation presents goimports as a tool for Go developers who want imports corrected and code formatted in their editor workflow.pkg.go.dev · read 8 Oct 2026
License
The package page identifies its license as BSD-3-Clause and marks it redistributable.pkg.go.dev · read 8 Oct 2026
Purpose
goimports updates Go import lines by adding missing imports and removing unreferenced imports.pkg.go.dev · read 8 Oct 2026
Support
The package documentation directs users to the Go issue tracker for bugs and feature requests.pkg.go.dev · read 8 Oct 2026
Verbose mode
The `-v` flag provides verbose output to help verify directory exclusions and see what goimports is doing.pkg.go.dev · read 8 Oct 2026
Version status
The package page identifies version v0.51.0 and notes that the package is not in the latest version of its module.pkg.go.dev · read 8 Oct 2026

Alternatives to goimports

Every alternative, ranked