]> Cypherpunks repositories - gostls13.git/commit
log/slog: use unsafe.StringData, SliceData
authorJonathan Amsterdam <jba@google.com>
Tue, 21 Mar 2023 12:23:20 +0000 (08:23 -0400)
committerJonathan Amsterdam <jba@google.com>
Tue, 21 Mar 2023 20:55:46 +0000 (20:55 +0000)
commitf9a4cfd5109cc53b700aeefc18f0aa362b94214e
tree915ef71e63f60fe4be128122e1a85d5b5fb18aef
parentf67b0a73e30d4780c90f2a7d7dd659affea99f43
log/slog: use unsafe.StringData, SliceData

Use the new functions in 1.20 (unsafe.StringData, etc.) instead
of StringHeader and StructHeader from the reflect package.

Updates golang/go#56345.

Change-Id: I84d0db7b203aeffe45ce8b06beb7b4ee17e19949
Reviewed-on: https://go-review.googlesource.com/c/go/+/478055
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/log/slog/value_unsafe.go