From 79d3c2bfd95c5cb0ac6e4a3f97156161d792c676 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sun, 24 Apr 2022 18:53:32 +0200 Subject: Replace `interface{}` by `any` --- pkg/log/log.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'pkg/log/log.go') diff --git a/pkg/log/log.go b/pkg/log/log.go index b68d026..794cd09 100644 --- a/pkg/log/log.go +++ b/pkg/log/log.go @@ -33,45 +33,45 @@ func IsDebug() bool { return level == debug } -func Debug(v ...interface{}) { +func Debug(v ...any) { if level <= debug { _ = debugLogger.Output(2, fmt.Sprint(v...)) } } -func Debugf(format string, v ...interface{}) { +func Debugf(format string, v ...any) { if level <= debug { _ = debugLogger.Output(2, fmt.Sprintf(format, v...)) } } -func Print(v ...interface{}) { +func Print(v ...any) { if level <= info { _ = verboseLogger.Output(2, fmt.Sprint(v...)) } } -func Printf(format string, v ...interface{}) { +func Printf(format string, v ...any) { if level <= info { _ = verboseLogger.Output(2, fmt.Sprintf(format, v...)) } } -func Error(v ...interface{}) { +func Error(v ...any) { _ = errorLogger.Output(2, fmt.Sprint(v...)) } //noinspection GoUnusedExportedFunction -func Errorf(format string, a ...interface{}) { +func Errorf(format string, a ...any) { _ = errorLogger.Output(2, fmt.Sprintf(format, a...)) } //noinspection GoUnusedExportedFunction -func Warn(v ...interface{}) { +func Warn(v ...any) { _ = warnLogger.Output(2, fmt.Sprint(v...)) } //noinspection GoUnusedExportedFunction -func Warnf(format string, a ...interface{}) { +func Warnf(format string, a ...any) { _ = warnLogger.Output(2, fmt.Sprintf(format, a...)) } -- cgit v1.2.3-70-g09d2