Replace interface{} with any

This commit is contained in:
ionutboangiu
2023-05-29 12:15:08 -04:00
committed by Dan Christian Bogos
parent 97c3dab0f4
commit 6c16ff320f
636 changed files with 6405 additions and 6405 deletions

View File

@@ -210,8 +210,8 @@ func (sqls *SQLStorage) GetTpTableIds(tpid, table string, distinct utils.TPDisti
if err != nil {
return nil, err
}
vals := make([]string, len(cols)) // Allocate enough values
ints := make([]interface{}, len(cols)) // Make a slice of []interface{}
vals := make([]string, len(cols)) // Allocate enough values
ints := make([]any, len(cols)) // Make a slice of []any
for i := range ints {
ints[i] = &vals[i] // Copy references into the slice
}