Skip to content

Commit

Permalink
httplog: replace interface{} with any
Browse files Browse the repository at this point in the history
This form is nicer.
  • Loading branch information
Choraden committed Aug 28, 2023
1 parent ae3840c commit 6be182c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions httplog/httplog.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ func (m Mode) String() string {
}

type Logger struct {
log func(format string, args ...interface{})
log func(format string, args ...any)
mode Mode
}

// NewLogger returns a logger that logs HTTP requests and responses.
func NewLogger(logFunc func(format string, args ...interface{}), mode Mode) *Logger {
func NewLogger(logFunc func(format string, args ...any), mode Mode) *Logger {
return &Logger{
log: logFunc,
mode: mode,
Expand Down

0 comments on commit 6be182c

Please sign in to comment.