gokart is a linter for Go.

You can enable the gokart linter with:

trunk check enable gokart

Auto Enabling

gokart will be auto-enabled if a analyzers.yml config file is present.


gokart supports the following config files:

  • analyzers.yml

You can move these files to .trunk/configs and trunk check will still find them. See Moving Linter Configs for more info. Trunk check provides a default analyzers.yml if your project does not already have one.

Last updated