Documentation ¶
Overview ¶
Standard package provides plugin that performs operations of the Go standard toolset. Things like compiling or running the base `go` prefixed commands.
Index ¶
- Variables
- type Fixer
- type Plugin
- func (g *Plugin) Build(ctx context.Context, root string, args []string) error
- func (b *Plugin) Flags() *pflag.FlagSet
- func (g Plugin) Name() string
- func (b *Plugin) ParseFlags(args []string)
- func (b *Plugin) RunBeforeTest(ctx context.Context, root string, args []string) error
- func (p *Plugin) Test(ctx context.Context, root string, args []string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Fixer ¶
type Fixer struct{}
Fixer is in charge of performing a Fix operation that moves the main.go to cmd/[name-of-the-module]/main.go
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Compiler takes care of compiling the go binary, this might be one of the last steps when we have done other phases of the build process.
func (*Plugin) Build ¶
Build runs the Go compiler to generate the desired binary. Assuming the Go executable installed and can be invoked with `go`.
IMPORTANT: it uses the static build flags.
func (*Plugin) RunBeforeTest ¶
Click to show internal directories.
Click to hide internal directories.