Use any instead of interface{}

This commit is contained in:
eleksir
2025-04-07 20:50:49 +03:00
parent 30cb930a5e
commit 95a5033dfc
2 changed files with 7 additions and 7 deletions

View File

@@ -302,7 +302,7 @@ func ReadConf(defaultConfig []byte) (*MyConfig, error) {
// then produced json unmarshal to struct. Not very effective way, but in app lifetime it happens only once.
var (
sampleConfig *MyConfig
tmp map[string]interface{}
tmp map[string]any
)
err = hjson.Unmarshal(buf, &tmp)