Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type File ¶
type File interface {
// Open should open the file in the provided mode. Implementation depends on the file storage to be used.
Open() error
// Read calls the internal file descriptor method to Read.
Read([]byte) (int, error)
// Write calls the internal file descriptor method to Write.
Write([]byte) (int, error)
// Close calls the internal file descriptor method to Close.
Close() error
// List lists all the files in the directory
List(directory string) ([]string, error)
// Move moves file from source to destination
Move(source, destination string) error
}
Click to show internal directories.
Click to hide internal directories.