Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileSystemWriter ¶
type FileSystemWriter interface {
Create(name string) (io.WriteCloser, error)
}
A FileSystemWriter provides the means to write files into a collection of named files.
type MemoryFileSystemWriter ¶
type MemoryFileSystemWriter struct {
// contains filtered or unexported fields
}
MemoryFileSystemWriter allows writing into an in-memory map.
func (*MemoryFileSystemWriter) Get ¶
func (w *MemoryFileSystemWriter) Get(name string) []byte
Get returns the bytes of the named file.
func (*MemoryFileSystemWriter) OpenWriter ¶
func (w *MemoryFileSystemWriter) OpenWriter(name string) (io.WriteCloser, error)
OpenWriter opens an OS file for writing.
type OSFileSystemWriter ¶
type OSFileSystemWriter struct {
Root string
}
OSFileSystemWriter allows writing into the OS filesystem.
func (*OSFileSystemWriter) Create ¶
func (w *OSFileSystemWriter) Create(name string) (io.WriteCloser, error)
OpenWriter opens an OS file for writing.
Click to show internal directories.
Click to hide internal directories.