mirror of
https://github.com/vbatts/go-mtree.git
synced 2025-07-26 00:00:29 +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
|
||||
}
|
||||
|
||||
// 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) {
|
||||
sort.Sort(byPos(dh.Entries))
|
||||
var sum int64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue