Back to godoc.org
cmd / go / internal / generate

package generate

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

Overview

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

Index

Package Files

Variables

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