Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DFHFormat ¶
type DFHFormat struct { }
df -h 内容处理
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/disk2s1 223Gi 189Gi 31Gi 86% 1747322 9223372036853028485 0% / devfs 194Ki 194Ki 0Bi 100% 672 0 100% /dev /dev/disk2s4 223Gi 2.0Gi 31Gi 6% 2 9223372036854775805 0% /private/var/vm /dev/disk0s3 476Gi 130Gi 345Gi 28% 373103 362179837 0% /Volumes/Untitled map -hosts 0Bi 0Bi 0Bi 100% 0 0 100% /net map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home
type MemInfoFormat ¶
type MemInfoFormat struct { }
MemTotal: 16342672 kB MemFree: 597604 kB MemAvailable: 11863416 kB Buffers: 998572 kB Cached: 9609284 kB SwapCached: 276 kB Active: 5310820 kB Inactive: 9215580 kB Active(anon): 2373880 kB Inactive(anon): 1303736 kB ......
func (*MemInfoFormat) ToJson ¶
func (f *MemInfoFormat) ToJson(content string) string
Click to show internal directories.
Click to hide internal directories.