Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { A bool N bool P int Race bool Msan bool V bool Work bool X bool AsmFlags stringsFlag BuildMode string Compiler string GCCGoFlags stringsFlag GCFlags stringsFlag InstallSuffix string LDFlags stringsFlag PkgDir string Tags stringsFlag ToolExec stringsFlag GenerateRun string // contains filtered or unexported fields }
Data are all the flags that are shared by the go build, clean, get, install, list, run and test commands
func (*Data) BuildContext ¶
BuildContext returns a build context based on environment variables GOARCH, GOOS, GOROOT, GOPATH, CGO_ENABLED and command line flags
func (*Data) BuildFlags ¶
BuildFlags returns cli.Flags to use with cli.Command
func (*Data) RebuildAll ¶
type TestFlagsData ¶
type TestFlagsData struct { Data C bool Exec stringsFlag I bool O string Bench string BenchMem bool BenchTime time.Duration BlockProfile string BlockProfileRate int Count int Cover bool CoverMode string CoverPkg string CoverProfile string CPU string CPUProfile string MemProfile string MemProfileRate int OutputDir string Parallel int Run string Short bool Timeout time.Duration Trace string V bool }
func (*TestFlagsData) TestFlags ¶
func (f *TestFlagsData) TestFlags() []cli.Flag
Click to show internal directories.
Click to hide internal directories.