Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File interface {
// Name returns the name of the file
Name() string
// Close closes the file
Close() error
// Write writes data to the file
Write(data []byte) (int, error)
}
File represents a file interface from another package (like billy.File)
type MockFile ¶
type MockFile struct {
// contains filtered or unexported fields
}
MockFile is a simple implementation of the File interface
func NewMockFile ¶
Click to show internal directories.
Click to hide internal directories.