Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File interface { Name() string Close() error Chmod(os.FileMode) error Write([]byte) (int, error) Sync() error }
File wraps methods for os.File type
type OS ¶
type OS interface { Create(string) (File, error) OpenFile(string, int, os.FileMode) (File, error) Rename(string, string) error MkdirAll(string, os.FileMode) error RemoveAll(string) error IsNotExist(error) bool Stat(string) (os.FileInfo, error) Setenv(string, string) Unsetenv(string) }
OS wraps methods from the 'os' package for testing
Click to show internal directories.
Click to hide internal directories.