---
name: "x86_64-linux-gnu-gofmt-12"
section: "1"
platform: "linux"
package: "gccgo-12"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/x86_64-linux-gnu-gofmt-12"
---

# x86\_64-linux-gnu-gofmt-12(1)

format Go code

## NAME

gofmt - format Go code

## SYNOPSIS

**gofmt** \[*flags*\] \[*path*\]...

## DESCRIPTION

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

## SEE ALSO

[*go*(1)](/go/1.md)
