Versions in this module Expand all Collapse all v1 v1.0.2 Sep 27, 2023 v1.0.1 May 23, 2023 Changes in this version + const B + const GB + const KB + const MB + const OsLinux + const OsMac + const OsWindows + func FormatSize(fileSize int64) (size string) + func NetworkIO(pernic bool) (io []net.IOCountersStat, err error) + type Cpu struct + Cores int + Cpus []float64 + Percent int + func InitCPU(percpu bool) (c Cpu, err error) + type Disk struct + Total int + Used int + UsedPercent int + func InitDisk() (d Disk, err error) + type InfoStat struct + BootTime uint64 + HostID string + Hostname string + KernelArch string + KernelVersion string + OS string + Platform string + PlatformFamily string + PlatformVersion string + Procs uint64 + Uptime uint64 + VirtualizationRole string + VirtualizationSystem string + func InitHost() (info InfoStat, err error) + type Os struct + Compiler string + GOOS string + GoVersion string + NumCPU int + NumGoroutine int + func InitOS() (o Os) + type Rrm struct + Total int + Used int + UsedPercent int + func InitRAM() (r Rrm, err error) + type Server struct + Cpu Cpu + Disk Disk + Os Os + Rrm Rrm