Documentation ¶
Index ¶
- Constants
- Variables
- 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
- 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
- type File
- type FileList
- type HashMethod
Constants ¶
View Source
const ( K = 1024 M = 1024 * K G = 1024 * M )
Variables ¶
View Source
var (
LastSizeErr error
)
Functions ¶
func InitSizesForValue ¶
func InitSizesPointer ¶
func InitSizesPointer(c interface{}) (err error)
Types ¶
type Dir ¶
func (*Dir) SetMultiNoSize ¶
type DiskStatus ¶
func DiskUsage ¶
func DiskUsage(path string) (disk DiskStatus, err error)
type HashMethod ¶
Click to show internal directories.
Click to hide internal directories.