Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TryExtractTimestamp ¶
func TryExtractTimestamp(log environment_logs.EnvironmentLogWithMetadata) time.Time
Try to extract a timestamp from the log attributes with `dateparse.ParseStrict`.
If no timestamp is found, or if all timestamps fail to parse, a zero value is returned.
Use with `cmp.Or` to fallback to a default timestamp.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.