43 lines
453 B
Go
43 lines
453 B
Go
package main
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
type Config struct {
|
|
verbose bool
|
|
vverbose bool
|
|
noninter bool
|
|
fsOnly bool
|
|
dmin int64
|
|
threads int
|
|
top int
|
|
dir string
|
|
dirMount syscall.Statfs_t
|
|
}
|
|
|
|
type Dir struct {
|
|
path string
|
|
size int64
|
|
dirs []Dir
|
|
prev *Dir
|
|
}
|
|
|
|
type File struct {
|
|
name string
|
|
prev *Dir
|
|
size int64
|
|
}
|
|
|
|
type Ext struct {
|
|
ext string
|
|
size int64
|
|
count int
|
|
}
|
|
|
|
type Item struct {
|
|
isDir bool
|
|
dir *Dir
|
|
file *File
|
|
}
|