---
name: "goimports"
section: "1"
platform: "linux"
package: "golang-golang-x-tools"
version: "1:0.25.0+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/goimports"
---

# goimports(1)

updates your Go import lines

## NAME

goimports - updates your Go import lines

## SYNOPSIS

**goimports** \[*flags*\] \[ *path ...* \]

## DESCRIPTION

Command goimports updates your Go import lines, adding missing ones and removing unreferenced ones.

## OPTIONS

Run goimports -help for more details.

## AUTHOR

This manual page was written by Michael Stapelberg \<stapelberg@debian.org\>, for the Debian project (and may be used by others).
