From f44e60cca4f2741383e832d9eef5a65663318ac8 Mon Sep 17 00:00:00 2001 From: Martin Riedl Date: Wed, 5 Mar 2025 17:47:49 +0100 Subject: [PATCH] style: replaced old interface{} with new any type alias --- formatter_json.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/formatter_json.go b/formatter_json.go index 6416d48..9ab2a13 100644 --- a/formatter_json.go +++ b/formatter_json.go @@ -24,7 +24,7 @@ import ( type FormatterJSON struct { FlatContent bool TimeFormat string - data map[string]interface{} + data map[string]any } func NewFormatterJSON() *FormatterJSON { @@ -35,7 +35,7 @@ func NewFormatterJSON() *FormatterJSON { func (formatter *FormatterJSON) Begin(entry *Entry) { // reset formatter - formatter.data = make(map[string]interface{}) + formatter.data = make(map[string]any) // add timestamp formatter.data["time"] = entry.Time.Format(formatter.TimeFormat)