()
| 37 | type SliceInt64 []int64 |
| 38 | |
| 39 | func (s SliceInt64) LogValue() slog.Value { |
| 40 | return slog.StringValue(strings.Join( |
| 41 | sliceutil.Map(s, func(i int64) string { return strconv.FormatInt(i, 10) }), |
| 42 | ",", |
| 43 | )) |
| 44 | } |
| 45 | |
| 46 | // SliceString is a type that implements slog.LogValue and which will format a |
| 47 | // slice for inclusion in logging, but lazily so that no work is done unless a |