Back to godoc.org
DiskUsage gets disk usage of specified path.
Find uses the equivalent of the command `find <path> -dev -printf '.' | wc -c` to count files and directories. While this is not an exact measure of inodes used, it is a very good approximation.
Documentation was rendered with GOOS=linux and GOARCH=amd64.