# goimports

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

You can enable the goimports linter with:

```shell
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)
