New lint rules

This commit is contained in:
Jamie Curnow committed 2024-11-21 19:07:36 +10:00
1 parent 4e6d65645f
commit 152b7666d8
85 files changed
+385 -259

No files matched your search

+2 -2
View File
@@ -35,8 +35,8 @@ func ConvertIntSliceToString(slice []int) string {
}
// ConvertStringSliceToInterface is required in some special cases
func ConvertStringSliceToInterface(slice []string) []interface{} {
res := make([]interface{}, len(slice))
func ConvertStringSliceToInterface(slice []string) []any {
res := make([]any, len(slice))
for i := range slice {
res[i] = slice[i]
}