Files
rdu/structs.go
tom.chivert 8efc6d8c6d
build / build (push) Successful in 32s
slightly optimized cpu usage
2024-08-20 19:41:00 +02:00

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
}