format

package
v0.0.0-...-d669b54 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdFormat

type CmdFormat interface {
	ToJson(content string) string
}

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

func (*DFHFormat) ToJson

func (f *DFHFormat) ToJson(content string) string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL