Skip to content

Commit

Permalink
feat: enforce interface
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Sep 2, 2023
1 parent 0988a64 commit 8cf76a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ func (o Option) NewGraylogHandler() slog.Handler {
}
}

var _ slog.Handler = (*GraylogHandler)(nil)

type GraylogHandler struct {
option Option
attrs []slog.Attr
Expand Down

0 comments on commit 8cf76a6

Please sign in to comment.