You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/tstime
Joe Tsai aff8f1b358
tstime: add GoDuration which JSON serializes with time.Duration.String (#15726)
The encoding/json/v2 effort may end up changing
the default represention of time.Duration in JSON.
See https://go.dev/issue/71631

The GoDuration type allows us to explicitly use
the time.Duration.String representation regardless of
whether we serialize with v1 or v2 of encoding/json.

Updates tailscale/corp#27502

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
8 months ago
..
mono all: use Go 1.22 range-over-int 2 years ago
rate all: use Go 1.22 range-over-int 2 years ago
jitter.go all: use math/rand/v2 more 2 years ago
jitter_test.go all: use Go 1.22 range-over-int 2 years ago
tstime.go tstime: add GoDuration which JSON serializes with time.Duration.String (#15726) 8 months ago
tstime_test.go tstime: add GoDuration which JSON serializes with time.Duration.String (#15726) 8 months ago