mirror of
https://github.com/vbatts/go-mtree.git
synced 2025-07-27 00:30:27 +00:00
hierarchy: comment on interface used
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
2de52e4fb9
commit
016c34ecb9
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@ type DirectoryHierarchy struct {
|
||||||
Entries []Entry
|
Entries []Entry
|
||||||
}
|
}
|
||||||
|
|
||||||
// WriteTo simplifies the output of the resulting hierarchy spec
|
// WriteTo simplifies the output of the resulting hierarchy spec.
|
||||||
|
// Satisfies the `io.WriterTo` interface.
|
||||||
func (dh DirectoryHierarchy) WriteTo(w io.Writer) (n int64, err error) {
|
func (dh DirectoryHierarchy) WriteTo(w io.Writer) (n int64, err error) {
|
||||||
sort.Sort(byPos(dh.Entries))
|
sort.Sort(byPos(dh.Entries))
|
||||||
var sum int64
|
var sum int64
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue