internal
v0.0.0-20260131131257-3f1910c8eb35
github.com/zovgo/database/internal
Documentation
pkg.go.dev ↗Variables
Discard
var Discard = slog.New(DiscardHandler{})
Discard is discard slog.Logger implementation.
Functions
MapContainsFunc
func MapContainsFunc[K comparable, V any](collection map[K]V, f func(K, V) bool) bool
Types
DiscardHandler
type DiscardHandler struct{}
DiscardHandler implements a slog.Handler that is always disabled. Each of its methods return immediately without any code running.
DiscardHandler.Enabled
func (DiscardHandler) Enabled(context.Context, slog.Level) bool
DiscardHandler.Handle
func (DiscardHandler) Handle(context.Context, slog.Record) error
DiscardHandler.WithAttrs
func (d DiscardHandler) WithAttrs([]slog.Attr) slog.Handler
DiscardHandler.WithGroup
func (d DiscardHandler) WithGroup(string) slog.Handler