Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Copier ¶
Copier copies files from one path to another. Not recursive by default. Optional list of patterns to ignore via `strings.Contains`.
type CopyBuffer ¶
type CopyBuffer struct { // Cursor tracks progress through the buffer between read calls. Cursor int // Data is the underlying data to copy out. Data []byte }
CopyBuffer is a copy-on-read buffer.
func NewCopyBuffer ¶
func NewCopyBuffer(buffer []byte) *CopyBuffer
NewCopyBuffer allocates a copy buffer seeded by the provided byte slice.
type Finder ¶
type Finder struct { // Root folder to start search from. Root string // IsDir if we are looking for a directory. IsDir bool // Rel indicates to return a relative path instead of an absolute path. Rel bool }
Finder finds files by name.
type MultiError ¶
type MultiError []error
MultiError combines a number of errors into a single error value.
func (MultiError) Error ¶
func (me MultiError) Error() string
func (*MultiError) FromChan ¶
func (me *MultiError) FromChan(errs chan error) *MultiError
func (MultiError) IsEmpty ¶
func (me MultiError) IsEmpty() bool
Click to show internal directories.
Click to hide internal directories.