gofmt

Formatterby Tori @gettoriApache-2.0Bundled
Verified against
go1.27.1Measured Sep 21, 2026
Platforms
macOS, Linux, Windows
Install
Uses the one on your PATH
Needs Tori
26.1009.0 or newer
Schema
Version 1
Id
gofmt
Source file
formatters/gofmt.toml ↗gettori/packs on GitHub

Add it in Tori

  1. Open Settings with the gear in the title bar.
  2. Go to Formatters.
  3. gofmt is already there: it ships inside Tori. When the catalog has a newer version, Add a formatter lists it with Update.

Adding writes one file and runs nothing. Tori runs the one already on your PATH.

Use it without the catalog

Download the file and drop it in the folder below. Tori loads it the next time it starts.

Download file gofmt.toml
~/.config/tori/packs/formatters/

The file

gofmt.tomlRead only
1# gofmt, from the login PATH. See FORMATTERS.md.2#3# No markers: gofmt has no config file, and a go.mod says a directory is Go,4# not that it formats with gofmt. It runs only when `format.byExtension` names it.56schema_version = 17id = "gofmt"8label = "gofmt"9description = "Format Go with gofmt"10license = "Apache-2.0"11contributor = { name = "Tori", github = "gettori" }12extensions = ["go"]1314verified_against = "go1.27.1"15verified_on = "2026-09-21"1617[launch]18kind = "path"19program = "gofmt"