Documentation
¶
Overview ¶
Package dmesg provides the functionality to poll the dmesg log.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCtimeWithError ¶
ParseCtimeWithError Parses the timestamp from "dmesg --ctime" output lines. Returns a zero time if the timestamp is not found or the timestamp is invalid. Returns an error if the timestamp is not found or the timestamp is invalid.
func ParseISOtimeWithError ¶ added in v0.1.9
ParseISOtimeWithError parses the timestamp from "dmesg --time-format=iso" output lines. ref. "The definition of the iso timestamp is: YYYY-MM-DD<T>HH:MM:SS,<microseconds>←+><timezone offset from UTC>."
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.