Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Goos = runtime.GOOS
Goos returns the operating system, can be mocked for testing
Functions ¶
Types ¶
type Shims ¶ added in v0.5.7
type Shims struct {
Exit func(int)
UserHomeDir func() (string, error)
Stat func(string) (os.FileInfo, error)
RemoveAll func(string) error
Getwd func() (string, error)
Setenv func(string, string) error
Command func(string, ...string) *exec.Cmd
Getenv func(string) string
ReadFile func(string) ([]byte, error)
}
Shims provides mockable wrappers around system and runtime functions
Source Files
¶
Click to show internal directories.
Click to hide internal directories.