> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Gofmt

> Gofmt simplifies Go coding by automatically formatting code to match Go's style guidelines, enhancing readability and teamwork without the manual hassle.

[**Gofmt**](https://github.com/rhysd/actionlint) is a formatter for Go.

You can enable the Gofmt formatter with:

```shell theme={null}
trunk check enable gofmt
```

## Auto Enabling

Gofmt will be auto-enabled if any *Go* files are present.

## Links

* [Gofmt site](https://github.com/rhysd/actionlint)
* Gofmt Trunk Code Quality [integration source](https://github.com/trunk-io/plugins/tree/main/linters/gofmt)
* Trunk Code Quality's [open source plugins repo](https://github.com/trunk-io/plugins/tree/main)
