---
name: "x86_64-linux-gnu-gofmt-6"
section: "1"
platform: "linux"
package: "gccgo-6"
version: "6.3.0-18+deb9u1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/x86_64-linux-gnu-gofmt-6"
---

# x86\_64-linux-gnu-gofmt-6(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)
