aboutsummaryrefslogtreecommitdiff
path: root/pkg/log
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2022-04-24 18:53:32 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2022-04-24 18:53:32 +0200
commit79d3c2bfd95c5cb0ac6e4a3f97156161d792c676 (patch)
treecbfd034a362666b8dab842d3afed18cf95124ede /pkg/log
parent7822c9d443458ae9d1d9d678e279bfc516da7a8f (diff)
downloadfeed2imap-go-79d3c2bfd95c5cb0ac6e4a3f97156161d792c676.tar.gz
feed2imap-go-79d3c2bfd95c5cb0ac6e4a3f97156161d792c676.tar.bz2
feed2imap-go-79d3c2bfd95c5cb0ac6e4a3f97156161d792c676.zip
Replace `interface{}` by `any`
Diffstat (limited to 'pkg/log')
-rw-r--r--pkg/log/log.go16
1 files changed, 8 insertions, 8 deletions
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...))
}