Documentation ¶
Index ¶
- func Diff(from, to []string) (both, add, del []string)
- func ErrorIsEOF(err error) bool
- func FormatBytes(size int64) string
- func PathAbs(relPath, baseDir string) string
- func PathNormalize(path string, isDir bool) string
- func PathNormalizeBaseDir(baseDir string) string
- func PathParents(path string) []string
- func PathRel(absPath, baseDir string) string
- func PathSorted(paths []string) []string
- func PathSortedDirs(paths []string) []string
- type Reader
- func (r *Reader) Close() error
- func (r *Reader) GetBytesRead() int64
- func (r *Reader) GetBytesTotal() int64
- func (r *Reader) GetHashMd5() string
- func (r *Reader) GetHashSha256() string
- func (r *Reader) GetProgress() float64
- func (r *Reader) IsComplete() bool
- func (r *Reader) Read(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorIsEOF ¶
func FormatBytes ¶
func PathNormalize ¶
func PathNormalizeBaseDir ¶
func PathParents ¶
func PathSorted ¶
func PathSortedDirs ¶
Types ¶
type Reader ¶
type Reader struct { io.ReadCloser OnProgress func(r *Reader) OnComplete func(r *Reader) // contains filtered or unexported fields }
func (*Reader) GetBytesRead ¶
func (*Reader) GetBytesTotal ¶
func (*Reader) GetHashMd5 ¶
func (*Reader) GetHashSha256 ¶
func (*Reader) GetProgress ¶
func (*Reader) IsComplete ¶
Click to show internal directories.
Click to hide internal directories.