gofmt(1)
π gofmt(1) β like, the manual page bestie π
From the User Commands section, obviously. β¨
πΈ NAME πΈ
gofmt β formats Go code. That's it. That's the whole job. And she ate. π
π¦ SYNOPSIS π¦
gofmt [flags] [path]...
Flags first, then a bunch of paths. Slay.</purl>
oops β paths, plural, and the ... is fr fr doing the most. You can hand her as many as you want, bestie. π«Ά
π DESCRIPTION π
Okay so. gofmt is a tool for formatting Go source code. That's the vibe. That's the whole main character arc. π
And if you want the full documentation β like, the deep lore, the extended cut, the director's commentary β you run:
gofmt -help
or you go peek at http://golang.org/cmd/gofmt π (the link is literally in the original, don't @ me).
No cap, that's everything the page gives you. It's giving minimal. It's giving mysterious. It's giving "she doesn't need to explain herself." π
β SEE ALSO β
go(1)β yeah, her big sibling. The wholegotool. Go say hi. π¦
πΈ cute lil PSA: this page is short on purpose. Anything more detailed lives behind gofmt -help or that URL. Don't come for me, I'm just the messenger. π
And that's the whole page, bestie!! Written under the Go umbrella β the source is Go, the date on it is January 2015, and the manual name it lives under is gofmt(1). Format your code, hydrate, and go to bed at a reasonable hour. Periodt. πβ¨ππ¦πΈπ π«Άπ₯ππβππππ§π
π¦ where this page comes from
- alpine 3.22: gcc-doc 14.2.0-r6 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- alpine 3.23: gcc-doc 15.2.0-r2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- alpine 3.24: gcc-doc 15.2.0-r5 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- arch rolling: gcc-go 16.2.1+r23+gd564253eb6c8-1 Β· GPL-3.0-or-later WITH GCC-exception-3.1 AND GFDL-1.3-or-later
- epel 9: gcc-go 11.5.0-6.el9 Β· GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
- fedora 43: gcc-go 15.2.1-2.fc43 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 43: gcc-go 15.3.1-1.fc43 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: gcc-go 16.0.1-0.10.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- fedora 44: gcc-go 16.2.1-2.fc44
- fedora 44: gcc-go 16.2.1-3.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GCC-exception-2.0) AND (GPL-2.0-or-later WITH GNU-compiler-exception) AND BSL-1.0 AND GFDL-1.3-or-later AND Linux-man-pages-copyleft-2-para AND SunPro AND BSD-1-Clause AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND BSD-4-Clause AND BSD-Source-Code AND Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 WITH LLVM-Exception) AND ZPL-2.1 AND ISC AND LicenseRef-Fedora-Public-Domain AND HP-1986 AND curl AND Martin-Birgmeier AND HPND-Markus-Kuhn AND dtoa AND SMLNJ AND AMD-newlib AND OAR AND HPND-merchantability-variant AND HPND-Intel
- ubuntu jammy: gcc-snapshot 1:20220117-1ubuntu1
- ubuntu noble: gcc-snapshot 1:20240117-1ubuntu1
- ubuntu questing: gcc-snapshot 1:20250921-1ubuntu1
- ubuntu resolute: gcc-snapshot 1:20260306-1ubuntu1
- ubuntu stonking: gcc-snapshot 1:20260920-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms