Documentation
¶
Index ¶
- func LookPath(file string) (string, error)
- func RunDiffTool(ctx context.Context, diffTool, diffText string) error
- type BuildResult
- type Builder
- type Cleaner
- type Config
- type Formatter
- type InstallResult
- type Installer
- func (i *Installer) GetInstallPath() (string, error)
- func (i *Installer) Install(ctx context.Context) (*InstallResult, error)
- func (i *Installer) InstallTo(ctx context.Context, installDir string) (*InstallResult, error)
- func (i *Installer) IsInPath(dir string) bool
- func (i *Installer) Uninstall(ctx context.Context) error
- func (i *Installer) UninstallFrom(ctx context.Context, installDir string) error
- type LintConfig
- type LintResult
- type Linter
- type ModuleManager
- func (m *ModuleManager) Download(ctx context.Context) error
- func (m *ModuleManager) Graph(ctx context.Context) error
- func (m *ModuleManager) Tidy(ctx context.Context) error
- func (m *ModuleManager) Vendor(ctx context.Context) error
- func (m *ModuleManager) Verify(ctx context.Context) error
- func (m *ModuleManager) Why(ctx context.Context, packages ...string) error
- type TestConfig
- type TestResult
- type Tester
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildResult ¶
type BuildResult struct {
Name string
OutputPath string
OutputSize int64
Duration time.Duration
Success bool
Error error
Output string
}
func (*BuildResult) String ¶
func (r *BuildResult) String() string
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func (*Builder) BuildWithResult ¶
func (b *Builder) BuildWithResult(ctx context.Context) *BuildResult
type Config ¶
type Config struct {
Name string
Path string
OutputDir string
Version string
GOOS string
GOARCH string
Race bool
LDFlags []string
BuildFlags []string
Tags []string
TrimPath bool
CGOEnabled bool
CGOConfigured bool
}
func DefaultConfig ¶
type InstallResult ¶
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
func NewInstaller ¶
func (*Installer) GetInstallPath ¶
func (*Installer) Install ¶
func (i *Installer) Install(ctx context.Context) (*InstallResult, error)
type LintConfig ¶
func DefaultLintConfig ¶
func DefaultLintConfig() LintConfig
type LintResult ¶
func (*LintResult) String ¶
func (r *LintResult) String() string
type Linter ¶
type Linter struct {
// contains filtered or unexported fields
}
func NewLinter ¶
func NewLinter(config LintConfig) *Linter
func (*Linter) LintWithResult ¶
func (l *Linter) LintWithResult(ctx context.Context) *LintResult
type ModuleManager ¶
type ModuleManager struct{}
func NewModuleManager ¶
func NewModuleManager() *ModuleManager
type TestConfig ¶
type TestConfig struct {
WorkingDir string
Packages []string
Verbose bool
Race bool
Cover bool
CoverProfile string
Short bool
Timeout time.Duration
Parallel int
RunPattern string
SkipPattern string
FailFast bool
Shuffle string
}
func DefaultTestConfig ¶
func DefaultTestConfig() TestConfig
type TestResult ¶
func (*TestResult) String ¶
func (r *TestResult) String() string
type Tester ¶
type Tester struct {
// contains filtered or unexported fields
}
func NewTester ¶
func NewTester(config TestConfig) *Tester
func (*Tester) GenerateCoverageHTML ¶
func (*Tester) TestWithResult ¶
func (t *Tester) TestWithResult(ctx context.Context) *TestResult
Click to show internal directories.
Click to hide internal directories.