Clear clears all log entries.
()
| 274 | |
| 275 | // Clear clears all log entries. |
| 276 | func (l *LogViewer) Clear() { |
| 277 | l.entries = make([]LogEntry, 0) |
| 278 | l.scrollPos = 0 |
| 279 | l.autoScroll = true |
| 280 | l.totalLineCount = 0 |
| 281 | } |
| 282 | |
| 283 | // Render renders only the visible portion of the log viewer. |
| 284 | func (l *LogViewer) Render() string { |
no outgoing calls