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

package generate

import "cmd/go/internal/generate"

Package generate implements the “go generate” command.

Index

Package Files

generate.go

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:      "" /* 3977 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 16 packages (graph) and is imported by 5 packages. Updated 2019-11-12. Refresh now. Tools for package owners.