> ## 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.

# goimports

> goimports is a linter for Go

[**goimports**](https://pkg.go.dev/golang.org/x/tools/cmd/goimports) is a linter for Go.

You can enable the goimports linter with:

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

## Auto Enabling

goimports will never be auto-enabled. It must be enabled manually.

## Links

* [goimports site](https://pkg.go.dev/golang.org/x/tools/cmd/goimports)
* goimports Trunk Code Quality [integration source](https://github.com/trunk-io/plugins/tree/main/linters/goimports)
* Trunk Code Quality's [open source plugins repo](https://github.com/trunk-io/plugins/tree/main)
