From: Jonathan Amsterdam Date: Fri, 14 Jul 2023 12:23:18 +0000 (-0400) Subject: log/slog: doc commonHandler.handle X-Git-Tag: go1.21rc4~19^2~6 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fe5af1532ab9c749d880c05e0ffe0e17bf874d7f;p=gostls13.git log/slog: doc commonHandler.handle Change-Id: Id301b772e472e1cb7cd8bccaa5a13ff7b6f94711 Reviewed-on: https://go-review.googlesource.com/c/go/+/509596 Run-TryBot: Jonathan Amsterdam TryBot-Result: Gopher Robot Reviewed-by: Bryan Mills --- diff --git a/src/log/slog/handler.go b/src/log/slog/handler.go index 8398b928c1..a73983cda3 100644 --- a/src/log/slog/handler.go +++ b/src/log/slog/handler.go @@ -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()