util

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NilHandler

type NilHandler struct{}

func (*NilHandler) Enabled

func (h *NilHandler) Enabled(_ context.Context, level slog.Level) bool

Enabled returns always false for NilHandler.

func (*NilHandler) Handle

func (h *NilHandler) Handle(_ context.Context, r slog.Record) error

Handle does nothing for NilHandler.

func (*NilHandler) WithAttrs

func (h *NilHandler) WithAttrs(_ []slog.Attr) slog.Handler

WithAttrs returns a new NilHandler whose attributes consists of h's attributes followed by attrs. NilHandler returns a new empty handler.

func (*NilHandler) WithGroup

func (h *NilHandler) WithGroup(_ string) slog.Handler

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL