(enable bool, value I)
| 63 | } |
| 64 | |
| 65 | func maybeHumanReadableCount[I constraints.Integer](enable bool, value I) string { |
| 66 | if enable { |
| 67 | return units.Count(value) |
| 68 | } |
| 69 | |
| 70 | return strconv.FormatInt(int64(value), 10) |
| 71 | } |
| 72 | |
| 73 | func formatTimestamp(ts time.Time) string { |
| 74 | return convertTimezone(ts).Format("2006-01-02 15:04:05 MST") |