style: replaced old interface{} with new any type alias

This commit is contained in:
Martin Riedl 2025-03-05 17:47:49 +01:00
parent 5d174f8685
commit f44e60cca4
Signed by: martinr92
GPG key ID: FB68DA65516A804C

View file

@ -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)