fmt package
Canonical docs for formatted I/O, printing verbs, string formatting, scanners, and formatter interfaces.
Canonical docs for formatted I/O, printing verbs, string formatting, scanners, and formatter interfaces.
- Author: Go Team
- Authority: primary
- Kind: package-doc
- URL: https://pkg.go.dev/fmt
What it covers
- printing verbs
- formatted string construction
- formatter and stringer integration
Why authoritative
Official package documentation for Go’s standard formatted I/O package.
Use when
- how should I print or format values in Go
- which fmt verb should I use
- when should I use Stringer or Formatter in Go
Keywords
- fmt, printing, Sprintf, Printf, Formatter