lint fixes

This commit is contained in:
Aine
2023-10-03 00:03:29 +03:00
parent ef221038f7
commit 0d0dcf20b9
18 changed files with 196 additions and 152 deletions

View File

@@ -11,24 +11,24 @@ type validatorLoggerWrapper struct {
log *zerolog.Logger
}
func (l validatorLoggerWrapper) Info(msg string, args ...interface{}) {
func (l validatorLoggerWrapper) Info(msg string, args ...any) {
l.log.Info().Msgf(msg, args...)
}
func (l validatorLoggerWrapper) Error(msg string, args ...interface{}) {
func (l validatorLoggerWrapper) Error(msg string, args ...any) {
l.log.Error().Msgf(msg, args...)
}
// loggerWrapper is a wrapper around any logger to implement smtp.Logger interface
type loggerWrapper struct {
log func(string, ...interface{})
log func(string, ...any)
}
func (l loggerWrapper) Printf(format string, v ...interface{}) {
func (l loggerWrapper) Printf(format string, v ...any) {
l.log(format, v...)
}
func (l loggerWrapper) Println(v ...interface{}) {
func (l loggerWrapper) Println(v ...any) {
msg := strings.Repeat("%v ", len(v))
l.log(msg, v...)
}