type UsageInfo … // Info linux returns (available bytes, byte capacity, byte usage, total inodes, inodes free, inode usage, error) // for the filesystem that path resides upon. func Info(path string) (int64, int64, int64, int64, int64, int64, error) { … } // DiskUsage calculates the number of inodes and disk usage for a given directory func DiskUsage(path string) (UsageInfo, error) { … }