]> Cypherpunks.ru repositories - gostls13.git/commitdiff
log/slog: doc commonHandler.handle
authorJonathan Amsterdam <jba@google.com>
Fri, 14 Jul 2023 12:23:18 +0000 (08:23 -0400)
committerJonathan Amsterdam <jba@google.com>
Fri, 14 Jul 2023 21:29:53 +0000 (21:29 +0000)
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>
src/log/slog/handler.go

index 8398b928c1b5e9bd55ca994e1a7a7cbdc78dd296..a73983cda39418e54bbc38decac9f0f812deb3b6 100644 (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()