Go: cmd/go/internal/generate Index | Files

package generate

import "cmd/go/internal/generate"

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:      "" /* 4076 byte string literal not displayed */,

type Generator Uses

type Generator struct {
    // contains filtered or unexported fields

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

Package generate imports 20 packages (graph) and is imported by 5 packages. Updated 2020-12-09. Refresh now. Tools for package owners.