go 1.19 interface{} -> any

This commit is contained in:
Cody Lee
2022-12-03 16:32:12 -06:00
parent b05453b643
commit 247cc868b3
36 changed files with 120 additions and 120 deletions

View File

@@ -58,7 +58,7 @@ type InfluxUnifi struct {
type metric struct {
Table string
Tags map[string]string
Fields map[string]interface{}
Fields map[string]any
TS time.Time
}
@@ -266,7 +266,7 @@ func (u *InfluxUnifi) loopPoints(r report) {
reportClientDPItotals(r, appTotal, catTotal)
}
func (u *InfluxUnifi) switchExport(r report, v interface{}) { //nolint:cyclop
func (u *InfluxUnifi) switchExport(r report, v any) { //nolint:cyclop
switch v := v.(type) {
case *unifi.RogueAP:
u.batchRogueAP(r, v)