Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaptureHandler ¶
type CaptureHandler struct {
// contains filtered or unexported fields
}
CaptureHandler is a test helper that captures log records.
func NewCaptureHandler ¶
func NewCaptureHandler(records *[]slog.Record) *CaptureHandler
NewCaptureHandler creates a new CaptureHandler that appends records to the provided slice.
Click to show internal directories.
Click to hide internal directories.