gofmt(1)

gofmt1

Format go code

Usage

gofmt [flags] [path] ...

Overview

A tool for formatting Go source code. For full documentation run gofmt -help or see http://golang.org/cmd/gofmt.

Releases

8 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7–11
  2. 12–13
  3. Arch

-comments until Debian 11 (Bullseye); -cpuprofile until Debian 13 (Trixie); -d until Debian 13 (Trixie); -e until Debian 13 (Trixie); -l until Debian 13 (Trixie); -r until Debian 13 (Trixie); -s until Debian 13 (Trixie); -tabs until Debian 11 (Bullseye); -tabwidth until Debian 11 (Bullseye); -w until Debian 13 (Trixie).

From gcc-go 16.2.1+r23+gd564253eb6c8-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.