Documentation ¶
Overview ¶
Package vos provides a basic virtual OS abstraction implementation.
This package mimicks "os" package features in-memory, so no real files are created, read, updated, or deleted. The package provides a "Patch()" function to inject this implementation e.g. during testing. Only test packages typically need to use this.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CatchExit ¶
func CatchExit(catch func(code int))
CatchExit allows recovering from vos.Exit() and calls catch with the denoted exit code.
func ClearStdio ¶
func ClearStdio(v vos)
ClearStdio clears IO read-writers for Stdin, Stdout, and Stderr of the vos instance.
func GetStdio ¶
func GetStdio(v vos) (stdin, stdout, stderr io.ReadWriter)
GetStdio returns IO read-writers for Stdin, Stdout, and Stderr of the vos instance.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.