- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for timeLocation (0.13 sec)
-
src/log/slog/value.go
// returns nil, so a Value with any == timeLocation(nil) cannot be // mistaken for any other Value, time.Time or otherwise. return Value{any: timeLocation(nil)} } nsec := v.UnixNano() t := time.Unix(0, nsec) if v.Equal(t) { // UnixNano correctly represents the time, so use a zero-alloc representation. return Value{num: uint64(nsec), any: timeLocation(v.Location())} } // Fall back to the general form.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:12:08 UTC 2024 - 13.3K bytes - Viewed (0)