Go · Command
go generate
go generate runs commands marked by //go:generate directives. It must be invoked explicitly and is commonly used to create or update Go source files.
Last updated
Syntax
go generate [-run regexp] [-n] [-v] [-x] [build flags] [file.go... | packages]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
go buildgo testgo rungo toolgofmt