mock

package
v0.0.0-...-957256f Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env struct {
	// contains filtered or unexported fields
}

func New

func New() *Env

func (*Env) Environ

func (e *Env) Environ() []string

Environ returns a copy of strings representing the environment, in the form "key=value".

func (*Env) Getenv

func (e *Env) Getenv(key string) string

func (*Env) Getwd

func (e *Env) Getwd() (string, error)

func (*Env) Setenv

func (e *Env) Setenv(key, value string) error

func (*Env) Setstderr

func (e *Env) Setstderr(w io.Writer)

func (*Env) Setstdin

func (e *Env) Setstdin(r io.Reader)

func (*Env) Setstdout

func (e *Env) Setstdout(w io.Writer)

func (*Env) Setwd

func (e *Env) Setwd(dir string) error

func (*Env) Stderr

func (e *Env) Stderr() io.Writer

func (*Env) Stdin

func (e *Env) Stdin() io.Reader

func (*Env) Stdout

func (e *Env) Stdout() io.Writer

Jump to

Keyboard shortcuts

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