1
0
mirror of https://github.com/golang/go synced 2024-11-22 18:44:54 -07:00
go/src/log
Jonathan Amsterdam db7bb2742c log/slog: handle times with undefined UnixNanos
slog tries to represent a time.Time without allocations, which involves
storing its UnixNanos value. But UnixNanos is undefined for some valid
times. Provide a fallback representation for those times by storing them
in the `any` field of `Value`.

Fixes #65902.

Change-Id: I736c739a92f77d7b1122ea0831524acdd2c4703f
Reviewed-on: https://go-review.googlesource.com/c/go/+/585519
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
2024-05-16 16:12:08 +00:00
..
internal
slog log/slog: handle times with undefined UnixNanos 2024-05-16 16:12:08 +00:00
syslog
example_test.go
log_test.go
log.go