Documentation
¶
Overview ¶
Package march traverses two directories in lock step
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type March ¶
type March struct {
// contains filtered or unexported fields
}
March holds the data used to traverse two Fs simultaneously, calling callback for each match
type Marcher ¶
type Marcher interface {
// SrcOnly is called for a DirEntry found only in the source
SrcOnly(src fs.DirEntry) (recurse bool)
// DstOnly is called for a DirEntry found only in the destination
DstOnly(dst fs.DirEntry) (recurse bool)
// Match is called for a DirEntry found both in the source and destination
Match(dst, src fs.DirEntry) (recurse bool)
}
Marcher is called on each match
Click to show internal directories.
Click to hide internal directories.