MCPcopy
hub / github.com/go-kit/kit / Timestamp

Function Timestamp

log/value.go:19–21  ·  view source on GitHub ↗

Timestamp returns a timestamp Valuer. It invokes the t function to get the time; unless you are doing something tricky, pass time.Now. Most users will want to use DefaultTimestamp or DefaultTimestampUTC, which are TimestampFormats that use the RFC3339Nano format.

(t func() time.Time)

Source from the content-addressed store, hash-verified

17// Most users will want to use DefaultTimestamp or DefaultTimestampUTC, which
18// are TimestampFormats that use the RFC3339Nano format.
19func Timestamp(t func() time.Time) Valuer {
20 return log.Timestamp(t)
21}
22
23// TimestampFormat returns a timestamp Valuer with a custom time format. It
24// invokes the t function to get the time to format; unless you are doing

Callers 1

Example_debugInfoFunction · 0.92

Calls

no outgoing calls

Tested by 1

Example_debugInfoFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…