Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskUsageStats ¶ added in v2.1.39
DiskUsageStats
Total = Used + Free
func GetDiskUsageStats ¶ added in v2.1.54
func GetDiskUsageStats() (*DiskUsageStats, error)
func GetDiskUsageStatsByPath ¶ added in v2.1.39
func GetDiskUsageStatsByPath(path string) (*DiskUsageStats, error)
GetDiskUsageStatsByPath
PS: (1) Mac(Linux),查看磁盘空间的命令: df -h
golang 获取cpu 内存 硬盘 使用率 信息 进程信息
https://blog.csdn.net/whatday/article/details/109620192
Click to show internal directories.
Click to hide internal directories.