NewLogViewer creates a new log viewer.
()
| 40 | |
| 41 | // NewLogViewer creates a new log viewer. |
| 42 | func NewLogViewer() *LogViewer { |
| 43 | return &LogViewer{ |
| 44 | entries: make([]LogEntry, 0), |
| 45 | scrollPos: 0, |
| 46 | autoScroll: true, |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | // AddEvent adds a loop event to the log. |
| 51 | func (l *LogViewer) AddEvent(event loop.Event) { |
no outgoing calls