From c53a1998c589a544b25d53f6e6fdf0f24a4df25b Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Thu, 2 Feb 2023 21:25:25 +0800 Subject: all: replace `interface{}` with `any` (#7330) Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> --- internal/conf/conf_test.go | 2 +- internal/conf/log.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/conf') diff --git a/internal/conf/conf_test.go b/internal/conf/conf_test.go index 1ac64d6c..294c4f34 100644 --- a/internal/conf/conf_test.go +++ b/internal/conf/conf_test.go @@ -29,7 +29,7 @@ func TestInit(t *testing.T) { for _, v := range []struct { section string - config interface{} + config any }{ {"", &App}, {"server", &Server}, diff --git a/internal/conf/log.go b/internal/conf/log.go index bde739df..8ac8ec96 100644 --- a/internal/conf/log.go +++ b/internal/conf/log.go @@ -16,7 +16,7 @@ import ( type loggerConf struct { Buffer int64 - Config interface{} + Config any } type logConf struct { -- cgit v1.2.3