go fmt
Format Go source files.
Prints the filenames that are changed.
=> More information.
- Format Go source files in the current directory:
go fmt
- Format a specific Go package in your import path (
$GOPATH/src
):
go fmt {path/to/package}
- Format the package in the current directory and all subdirectories (note the
...
):
go fmt {./...}
- Print what format commands would've been run, without modifying anything:
go fmt -n
- Print which format commands are run as they are run:
go fmt -x
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
=> CC-BY
Proxy Information
- Original URL
- gemini://freeshell.de/tldr/go-fmt.gmi
- Status Code
- Success (20)
- Meta
text/gemini;lang=en-GB
- Capsule Response Time
- 104.086303 milliseconds
- Gemini-to-HTML Time
- 0.311638 milliseconds
This content has been proxied by September (ba2dc).