mirror of
https://github.com/apricote/hcloud-upload-image.git
synced 2026-02-07 02:07:05 +00:00
refactor: yeet util/ subdirs
This commit is contained in:
parent
b6ae95f55b
commit
62578ad5c5
13 changed files with 10 additions and 10 deletions
|
|
@ -1,15 +0,0 @@
|
|||
package contextlogger
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log/slog"
|
||||
)
|
||||
|
||||
// discardHandler is a [slog.Handler] that just discards any input. It is a safe default if any library
|
||||
// method does not get passed a logger through the context.
|
||||
type discardHandler struct{}
|
||||
|
||||
func (discardHandler) Enabled(_ context.Context, _ slog.Level) bool { return false }
|
||||
func (discardHandler) Handle(_ context.Context, _ slog.Record) error { return nil }
|
||||
func (d discardHandler) WithAttrs(_ []slog.Attr) slog.Handler { return d }
|
||||
func (d discardHandler) WithGroup(_ string) slog.Handler { return d }
|
||||
Loading…
Add table
Add a link
Reference in a new issue