()
| 76 | } |
| 77 | |
| 78 | func (v *LogView) AsTableHeaderString() string { |
| 79 | row := v.AsTableHeader() |
| 80 | return fmt.Sprintf( |
| 81 | " "+"\033[4m%-*s %-*s %-*s %-*s %-*s\033[0m", |
| 82 | colWidthType+3, row[0], |
| 83 | colWidthDesc+14, row[1], |
| 84 | colWidthDate, row[2], |
| 85 | colWidthConnection, row[3], |
| 86 | colWidthClient, row[4], |
| 87 | ) |
| 88 | } |
| 89 | |
| 90 | func (v *LogView) AsTableRow() []string { |
| 91 | typ, desc := v.typeDesc() |
no test coverage detected