log/slog: add GroupAttrs

GroupAttrs is a more efficient version of Group
that takes a slice of Attr values.

Fixes #66365

Change-Id: Ic3046704825e17098f2fea5751f2959dce1073e2
Reviewed-on: https://go-review.googlesource.com/c/go/+/672915
Reviewed-by: Jonathan Amsterdam <jba@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
Sean Liao 2025-05-14 21:26:57 +01:00 committed by Damien Neil
parent ce49eb488a
commit 3ae95aafb5
4 changed files with 55 additions and 0 deletions

1
api/next/66365.txt Normal file
View file

@ -0,0 +1 @@
pkg log/slog, func GroupAttrs(string, ...Attr) Attr #66365