Go · Command
go fmt
go fmt formats Go package source files by running gofmt. It writes the formatted files and reports which files changed.
Last updated
Syntax
go fmt [-n] [-x] [packages]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
gofmtgo vetgo fixgo tool