# Go Check

> Run go vet to analyze Go source code for suspicious constructs

- Skill: `controlplaneio-fluxcd/go-check` (Agent Skill)
- Install (CLI): `npx skillmds@latest add controlplaneio-fluxcd/go-check`
- Raw SKILL.md: https://api.skillmd.com/api/skills/controlplaneio-fluxcd/go-check/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: controlplaneio-fluxcd (https://skillmd.com/u/controlplaneio-fluxcd)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/controlplaneio-fluxcd/go-check

---


# Go Check

Use `go vet` to examine Go source code and report suspicious constructs
that the compiler might not catch.

## Usage

To vet the current package:

```bash
go vet ./...
```

To vet a specific package:

```bash
go vet ./pkg/mypackage
```

## Common Options

- `-v` — verbose output, listing checked files
- `-json` — output diagnostics in JSON format
- `-vettool=path` — use an external vet tool

## Analyzers

`go vet` runs several built-in analyzers including:

- `printf` — check printf-style format strings
- `shadow` — check for shadowed variables
- `structtag` — check struct field tags conform to `reflect.StructTag.Get`
- `unusedresult` — check for unused results of calls to certain functions

