Function
configureBackendForEngine
(backend luminaui.RendererBackend, engine *agent.QueryEngine)
Source from the content-addressed store, hash-verified
| 362 | } |
| 363 | |
| 364 | func parseMemoryCLITime(text string) time.Time { |
| 365 | text = strings.TrimSpace(text) |
| 366 | if text == "" { |
| 367 | return time.Time{} |
| 368 | } |
| 369 | for _, layout := range []string{time.RFC3339Nano, time.RFC3339, "2006-01-02"} { |
| 370 | if parsed, err := time.Parse(layout, text); err == nil { |
| 371 | return parsed |
| 372 | } |
| 373 | } |
| 374 | return time.Time{} |
| 375 | } |
Tested by
no test coverage detected