Is there a way to check the number of available/used/total inodes on a filesystem in Go?
I want something just like what df -i returns, and don't want to call df if possible.
Example of df:
# On macOs 10.15 (-i not needed here)
df /
Filesystem 512-blocks Used Available Capacity iused ifree %iused Mounted on
/dev/disk1s2 236568496 22038704 44026328 34% 488339 1182354141 0% /
# On Ubuntu 18.04
df -i /
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/vda1 2621440 219719 2401721 9% /