package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Jul 20, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
CpuUsage returns the usage percentage of the CPU
type CPU struct {
Vendor string `json:"vendor"`
Model string `json:"model"`
Cores uint32 `json:"cores"`
Threads uint32 `json:"threads"`
ClockSpeed float64 `json:"clockSpeed"`
Usage float64 `json:"usage"`
UsageEach []float64 `json:"usageEach"`
}
CPU properties
Info returns CPU struct containing cpu information
Source Files
¶
Click to show internal directories.
Click to hide internal directories.