(record any)
| 441 | } |
| 442 | |
| 443 | func marshalRecord(record any) ([]byte, error) { |
| 444 | line, err := json.Marshal(record) |
| 445 | if err != nil { |
| 446 | return nil, err |
| 447 | } |
| 448 | line = append(line, '\n') |
| 449 | return line, nil |
| 450 | } |
| 451 | |
| 452 | func stripANSI(output string) string { |
| 453 | return ansiEscapePattern.ReplaceAllString(output, "") |