MCPcopy
hub / github.com/riverqueue/river / LogValue

Method LogValue

rivershared/util/slogutil/slog_util.go:39–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37type SliceInt64 []int64
38
39func (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

Callers

nothing calls this directly

Calls 1

MapFunction · 0.92

Tested by

no test coverage detected