Documentation ¶
Overview ¶
Package vos is a virtual os tool. It allows mocking of the os.Environ, os.Getenv and os.Getwd functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Env ¶
type Env interface { Environ() []string Getenv(key string) string Getwd() (string, error) Stdout() io.Writer Stderr() io.Writer Stdin() io.Reader Setenv(key, value string) error Setwd(dir string) error Setstdout(io.Writer) Setstderr(io.Writer) Setstdin(io.Reader) }
Env provides an interface with methods similar to os.Environ, os.Getenv and os.Getwd functions.
Click to show internal directories.
Click to hide internal directories.