]> Cypherpunks repositories - gostls13.git/commit
log/slog: fix string representation of Group values
authorJonathan Amsterdam <jba@google.com>
Mon, 27 Mar 2023 13:42:22 +0000 (09:42 -0400)
committerJonathan Amsterdam <jba@google.com>
Mon, 27 Mar 2023 17:27:38 +0000 (17:27 +0000)
commit936821050800f9067215b6dbe5f6072c5a0ee975
tree90dba344e14210aff5b7a7119b7cf4264614ef10
parent171850f16983a24bf2cf0340b0982838faa7f3c5
log/slog: fix string representation of Group values

Format Group values like a []Attr, rather than a *Attr.

Also, use fmt.Append in Value.append.

Updates #56345.

Change-Id: I9db1a8ec47f8e99c1ac3225d78e152013116bff3
Reviewed-on: https://go-review.googlesource.com/c/go/+/479515
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/log/slog/value.go
src/log/slog/value_test.go