Package list golang-github-go-kit-kit / 96ab242
Change timestamp value format to nano precision Will Faught authored 4 years ago GitHub committed 4 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4141 var (
4242 // DefaultTimestamp is a Valuer that returns the current wallclock time,
4343 // respecting time zones, when bound.
44 DefaultTimestamp Valuer = func() interface{} { return time.Now().Format(time.RFC3339) }
44 DefaultTimestamp Valuer = func() interface{} { return time.Now().Format(time.RFC3339Nano) }
4545
4646 // DefaultTimestampUTC is a Valuer that returns the current time in UTC
4747 // when bound.
48 DefaultTimestampUTC Valuer = func() interface{} { return time.Now().UTC().Format(time.RFC3339) }
48 DefaultTimestampUTC Valuer = func() interface{} { return time.Now().UTC().Format(time.RFC3339Nano) }
4949 )
5050
5151 // Caller returns a Valuer that returns a file and line from a specified depth