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) WriteAt(b []byte, off int64) (n int, err error) Sync() error Read([]byte) (int, 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 Remove(string) error RemoveAll(string) error IsNotExist(error) bool Open(string) (File, error) }
OS wraps methods from the 'os' package for testing
Click to show internal directories.
Click to hide internal directories.