Documentation
¶
Overview ¶
Package gotool runs the go command on the developer's module. Every go subprocess of aicoded goes through it. It turns what go build, go vet and go test print into coded problems whose positions are relative to the module's folder.
Index ¶
- func Build(ctx context.Context, dir string) ([]*errs.Error, error)
- func BuildBinary(ctx context.Context, dir, out string) ([]*errs.Error, error)
- func Find() error
- func Race(ctx context.Context, dir string) (ok bool, why string, err error)
- func Test(ctx context.Context, dir string, race bool, env []string) ([]*errs.Error, error)
- func Tidy(ctx context.Context, dir string) error
- func Vet(ctx context.Context, dir string) ([]*errs.Error, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildBinary ¶
BuildBinary compiles the main package in dir into the file out.
func Test ¶
Test runs the tests of every package of the module in dir, with the race detector when race is set, and with env, each KEY=value, in their environment in place of the variables of those names. It takes no result from the test cache, where a test could have written one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.