Versions in this module Expand all Collapse all v1 v1.0.2 Aug 25, 2020 Changes in this version + type Errors []error + func (el Errors) Error() string + type File struct + Info os.FileInfo + Path string + type Options struct + Cancel <-chan struct{} + DupWriter io.Writer + ErrWriter io.Writer + ExitOnDup bool + ExitOnError bool + FollowSymlinks bool + Recursive bool + UniqWriter io.Writer + type Stats struct + NumBytes uint64 + NumDupBytes uint64 + NumDupFiles uint64 + NumFiles uint64 + func (s Stats) String() string + type Sum [sha1.Size]byte + type Sums struct + func Filter(r io.Reader, opts *Options) (*Sums, error) + func FilterDir(path string, opts *Options) (*Sums, error) + func NewSums() *Sums + func (s *Sums) Append(sum Sum, file *File) (dup bool) + func (s *Sums) Get(sum Sum) (files []*File, ok bool) + func (s *Sums) Range(f func(sum Sum, files []*File) bool) + func (s *Sums) Stats() Stats + func (s *Sums) WriteAllDup(w io.Writer) (err error)