Documentation ¶ Index ¶ type Probe func New() (*Probe, error) func (p *Probe) JSON() string func (p *Probe) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Probe ¶ type Probe struct { Model string `json:"model"` NumCores int `json:"numCore"` NumThreads int `json:"numThread"` NumSockets int `json:"numSocket"` // contains filtered or unexported fields } Probe struct for CPUs. func New ¶ func New() (*Probe, error) New initializes new probe struct and probes the system. func (*Probe) JSON ¶ func (p *Probe) JSON() string JSON representation of the struct. func (*Probe) String ¶ func (p *Probe) String() string String representation of the struct. Source Files ¶ View all Source files cpu.go Click to show internal directories. Click to hide internal directories.