Versions in this module Expand all Collapse all v1 v1.2.0 Jun 23, 2020 Changes in this version + const G + const K + const M + var LastSizeErr error + func DirUsage(path string) (size int64, err error) + func Fnv1a(buf []byte) (h uint32) + func GetMaxRSS() int64 + func GetStack(bytes int) string + func Getrusage() syscall.Rusage + func InitSizesForValue(m reflect.Value) (err error) + func InitSizesPointer(c interface{}) (err error) + func Remove(path string) error + func Rename(path, newpath string) error + func SizeToStr(n int64) (s string) + func StrToSize(s string) (n int64) + type Dir struct + Files map[string]int64 + func NewDir() *Dir + func (d *Dir) CheckPath(path string) (d2 *Dir, r1, r2 []File, err error) + func (d *Dir) Delete(name string) + func (d *Dir) Diff(d2 *Dir) (r1, r2 []File) + func (d *Dir) Load(path string) (err error) + func (d *Dir) Set(name string, size int64) + func (d *Dir) SetMulti(files map[string]int64) + func (d *Dir) SetMultiNoSize(files ...string) + func (d *Dir) ToSlice() []File + type DiskStatus struct + All int64 + Buckets []int + Free int64 + Root string + Used int64 + func DiskUsage(path string) (disk DiskStatus, err error) + type File struct + Name string + Size int64 + type FileList []File + func (by FileList) Len() int + func (by FileList) Less(i, j int) bool + func (by FileList) Swap(i, j int) + type HashMethod func(v []byte) (h uint32)