Back to
cmd / go / internal / generate

package generate

Latest Go to latest
Published: Jun 1, 2020 | License: BSD-3-Clause | Standard library


Package generate implements the ``go generate'' command.


Package Files


var CmdGenerate = &base.Command{
	Run:       runGenerate,
	UsageLine: "go generate [-run regexp] [-n] [-v] [-x] [build flags] [file.go... | packages]",
	Short:     "generate Go files by processing source",
	Long:      "" /* 3975 byte string literal not displayed */,

type Generator

type Generator struct {
	// contains filtered or unexported fields

A Generator represents the state of a single Go source file being scanned for generator commands.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier