| title | Trunk | How to run Gofmt |
|---|---|
| description | Gofmt simplifies Go coding by automatically formatting code to match Go's style guidelines, enhancing readability and teamwork without the manual hassle. |
Gofmt is a formatter for Go.
You can enable the Gofmt formatter with:
trunk check enable gofmtGofmt will be auto-enabled if any Go files are present.
- Gofmt site
- Gofmt Trunk Code Quality integration source
- Trunk Code Quality's open source plugins repo