Skip to content
masterclass Buddy

Go · Command

go vet

go vet examines Go source code for suspicious constructs that compilers may not catch. It reports possible problems, but its results are guidance rather than proof that code is correct.

Last updated

Syntax

go vet [packages]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • go command
  • go help packages
  • go tool vet help
  • printf check
  • copylocks check
  • atomic check
  • errorsas check

Source: cmd/vet/doc.go - The Go Programming Language. Checked 2026-11-03.