style: replaced old interface{} with new any type alias
This commit is contained in:
parent
5d174f8685
commit
f44e60cca4
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue