Documentation ¶
Overview ¶
Package cpuinfo (json) handles JSON based processing of /proc/cpuinfo. Instead of returning a Go struct, it returns JSON serialized bytes. A function to deserialize the JSON serialized bytes into a cpuinfo.CPUInfo struct is provided.
Note: the package name is cpuinfo and not the final element of the import path (json).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deserialize ¶
Deserialize takes some JSON serialized bytes and unmarshals them as cpuinfo.CPUInfo.
func Get ¶
Get returns the current cpuinfo as JSON serialized bytes using the package's global Profiler.
Types ¶
Click to show internal directories.
Click to hide internal directories.