Skip to content

[BUG] hotspot.Rule marshal unsupported type map[interface{}]int64 via x.SpecificItems #505

@sczyh30

Description

@sczyh30

Issue Description

Type: bug report

Describe what happened

Lint error:

  Error: core/hotspot/rule.go:104:25: SA1026: trying to marshal unsupported type map[interface{}]int64, via x.SpecificItems (staticcheck)
  	b, err := json.Marshal(r)
  	                       ^

Describe what you expected to happen

How to reproduce it (as minimally and precisely as possible)

Run the golangci-lint check.

Tell us your environment

go version go1.18.9 linux/amd64, Sentinel Go v1.0.4

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions