go fmt all files

go fmt ./...
  1. go fmt: This command formats Go source code files. It automatically updates the code to adhere to the formatting conventions specified in the Go code style guide.

  2. ./...: This is a wildcard pattern that includes all Go packages and subpackages in the current directory and its subdirectories. It ensures that the go fmt command is applied to all Go files within the project.

Executing this command will recursively format all Go files in the project according to the standard Go formatting rules.