Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shims ¶
type Shims struct {
ReadFile func(name string) ([]byte, error)
WriteFile func(name string, data []byte, perm os.FileMode) error
Stat func(name string) (os.FileInfo, error)
MkdirAll func(path string, perm os.FileMode) error
Remove func(name string) error
RemoveAll func(path string) error
Rename func(oldpath, newpath string) error
ReadDir func(name string) ([]os.DirEntry, error)
Glob func(pattern string) ([]string, error)
Getwd func() (string, error)
UserHomeDir func() (string, error)
Getenv func(key string) string
Setenv func(key, value string) error
LookupEnv func(key string) (string, bool)
Goos func() string
YamlMarshal func(v any) ([]byte, error)
YamlUnmarshal func(data []byte, v any) error
JsonMarshal func(v any) ([]byte, error)
JsonUnmarshal func(data []byte, v any) error
}
Shims holds the system call primitives that many packages need.
Click to show internal directories.
Click to hide internal directories.