Closed
Description
Summary
When setting keys in maps which obviously fon't exist before we get an error message
Steps to reproduce the behavior
filter := make(map[string]any, 0)
filter["term"] = map[string]interface{}{
filedName: map[string]interface{}{
"value": 5,
},
}
res = append(res, filter)
}
gosec version
Go version (output of 'go version')
GitHub Actions / golangci
golangci-lint-1.54.2, go 1.19
Operating system / Environment
ubuntu/ gh actions
Expected behavior
no error
Actual behavior
gives error
Activity