Versions in this module Expand all Collapse all v1 v1.0.1 Nov 26, 2025 v1.0.0 Nov 26, 2025 Changes in this version + func FormatBytes(bytes uint64) string + func FormatBytesShort(bytes uint64) string + func GetHealth(device string) string — darwin/amd64, linux/amd64 + func GetIOStats(device string) (readSpeed, writeSpeed float64) — darwin/amd64, linux/amd64 + func GetTemperature(device string) int — darwin/amd64, linux/amd64 + type DiskInfo struct + Available uint64 + Device string + FSType string + Free uint64 + Health string + InodesFree uint64 + InodesTotal uint64 + InodesUsed uint64 + Model string + MountPoint string + Percent float64 + ReadSpeed float64 + Serial string + Size string + Temperature int + Total uint64 + Used uint64 + Vendor string + WriteSpeed float64 + func GetDisks(includeVirtual bool) ([]DiskInfo, error)