1
0
mirror of https://github.com/golang/go synced 2024-11-17 04:44:46 -07:00
go/api/next/59060.txt
Jonathan Amsterdam f3e6f0f296 log/slog: function argument to Record.Attrs returns bool
Record.Attrs stops as soon as its argument function returns false.

Fixes #59060.

Change-Id: I578d64635e0e52b0fcdbc57f6d5a27a6efac8c70
Reviewed-on: https://go-review.googlesource.com/c/go/+/484096
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
2023-04-12 20:33:37 +00:00

3 lines
61 B
Plaintext

pkg log/slog, method (Record) Attrs(func(Attr) bool) #59060