types

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 3 Imported by: 14 modules, 13 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Command string // Include final command that was executed
	Stdout  bytes.Buffer
	Stderr  bytes.Buffer

	DebugData *bytes.Buffer // only available when debug mode is enabled
	// contains filtered or unexported fields
}

Result contains the result of a command execution.

func (*Result) GetExitCode

func (r *Result) GetExitCode() int

GetExitCode returns the exit code of the command.

func (*Result) GetExitError

func (r *Result) GetExitError() *exec.ExitError

GetExitError returns the exit error if any.

func (*Result) SetExitError

func (r *Result) SetExitError(err *exec.ExitError)

SetExitError sets the exit error (internal use only).

type Variable

type Variable struct {
	Name  string
	Value string
}

func (*Variable) String

func (v *Variable) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL