1
0
mirror of https://github.com/golang/go synced 2024-11-17 04:34:46 -07:00

log/slog: doc commonHandler.handle

Change-Id: Id301b772e472e1cb7cd8bccaa5a13ff7b6f94711
Reviewed-on: https://go-review.googlesource.com/c/go/+/509596
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
This commit is contained in:
Jonathan Amsterdam 2023-07-14 08:23:18 -04:00
parent 847d40d699
commit fe5af1532a

View File

@ -253,6 +253,8 @@ func (h *commonHandler) withGroup(name string) *commonHandler {
return h2
}
// handle is the internal implementation of Handler.Handle
// used by TextHandler and JSONHandler.
func (h *commonHandler) handle(r Record) error {
state := h.newHandleState(buffer.New(), true, "")
defer state.free()