Documentation ¶
Overview ¶
Package os provides OS Release information, /etc/os-release. Instead of returning a Go struct, it returns JSON serialized bytes. A function to deserialize the JSON serialized bytes into am os.OS struct is provided.
Note: the package name is os 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 os.OS.
func Get ¶
Get gets the OS release information, /etc/os-release, as JSON serialized bytes using the package's global Profiler.
Types ¶
type Profiler ¶
Profiler processes the OS release information, /etc/os-release, using JSON.
func NewProfiler ¶
Returns an initialized Profiler; ready to use.
func (*Profiler) Get ¶
Get gets the OS release information, /etc/os-release, as JSON serialized bytes.