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

# gofmt-13(1)

format Go code

Part of [x86\_64-linux-gnu-gofmt-13(1)](/x86_64-linux-gnu-gofmt-13/1.md).

## 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)
