---
name: "gofmt-10"
section: "1"
platform: "linux"
package: "gccgo-10"
version: "10.2.1-6"
release: "Debian 11 (Bullseye)"
platforms: ["linux"]
url: "https://new.carta.tech/x86_64-linux-gnu-gofmt-10"
---

# gofmt-10(1)

format Go code

Part of [x86\_64-linux-gnu-gofmt-10(1)](/x86_64-linux-gnu-gofmt-10/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)
