From 0427f4a844a36383338133a6e56836200d2e55d1 Mon Sep 17 00:00:00 2001 From: Yun Date: Sun, 1 Mar 2026 13:26:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=A5=E5=BF=97=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- options.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/options.go b/options.go index 2132495..b061e07 100644 --- a/options.go +++ b/options.go @@ -60,18 +60,18 @@ func WithLoggerLength(length int) Option { } type OptionLogger interface { - Infof(ctx context.Context, format string, args ...interface{}) - Errorf(ctx context.Context, format string, args ...interface{}) + Infof(ctx context.Context, format string, args ...any) + Errorf(ctx context.Context, format string, args ...any) } type defaultLogger struct{} -func (defaultLogger) Errorf(ctx context.Context, format string, args ...interface{}) { +func (defaultLogger) Errorf(ctx context.Context, format string, args ...any) { // 输出日志 log.Printf(format, args...) } -func (defaultLogger) Infof(ctx context.Context, format string, args ...interface{}) { +func (defaultLogger) Infof(ctx context.Context, format string, args ...any) { // 输出日志 log.Printf(format, args...) }