GOIMPORTS(1)
π GOIMPORTS π
okay bestie, welcome to the goimports page from the General Commands Manual β yes it's a manual page, yes it's iconic, no you don't have to read it like a textbook. we're doing this together π«Ά
β¨ NAME β¨
goimports β the lil command that updates your Go import lines π
πΈ SYNOPSIS πΈ
</br>
like. that's it. flags, then as many paths as your heart desires. slay.
# π¦ DESCRIPTION π¦
so <cyan>`goimports`</cyan> is a command that updates your Go import lines. it **adds** the missing ones and **removes** the unreferenced ones. that's the whole vibe. your imports stay clean, you stay unbothered, nobody has to scroll through a wall of unused packages ever again. periodt. β¨
# π OPTIONS π
okay so this page is lowkey keeping it mysterious, but it's not gatekeeping fr fr:
- run `goimports -help` for more details π
> not me telling you to go read the help output but like. that's genuinely where the details live, i don't make the rules π
# π AUTHOR π
this manual page was written by <purple>Michael Stapelberg</purple> `<stapelberg@debian.org>`, for the Debian project β and it may be used by others too, generous king behavior honestly π
---
and that's the whole page bestie, no cap π§ this one's dated <yellow>2015-07-24</yellow>, so yeah she's been serving since 2015 and still ate ππβ
π¦ where this page comes from
- debian bookworm: golang-golang-x-tools 1:0.5.0+ds-1 Β· BSD-3-Clause
- debian trixie: golang-golang-x-tools 1:0.25.0+ds-1 Β· BSD-3-Clause
- ubuntu jammy: golang-golang-x-tools 1:0.1.9+ds-2ubuntu2 Β· BSD-3-Clause
- ubuntu jammy: golang-golang-x-tools 1:0.1.9+ds-2ubuntu2.2 Β· BSD-3-Clause
- ubuntu noble: golang-golang-x-tools 1:0.18.0+ds-1 Β· BSD-3-Clause
- ubuntu noble: golang-golang-x-tools 1:0.18.0+ds-1ubuntu0.24.04.3 Β· BSD-3-Clause
- ubuntu questing: golang-golang-x-tools 1:0.25.0+ds-1
- ubuntu resolute: golang-golang-x-tools 1:0.42.0+ds-3 Β· BSD-3-Clause
- ubuntu stonking: golang-golang-x-tools 1:0.49.0+ds-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms