Update golangci-lint and turn it on in CI
This commit is contained in:
committed by
Sylwia Szunejko
parent
a9ab270196
commit
ab80d70106
@@ -74,9 +74,9 @@ func mapScyllaToGoType(s string) string {
|
||||
|
||||
typeStr := "struct {\n"
|
||||
for i, t := range types {
|
||||
typeStr = typeStr + "\t\tField" + strconv.Itoa(i+1) + " " + mapScyllaToGoType(t) + "\n"
|
||||
typeStr += "\t\tField" + strconv.Itoa(i+1) + " " + mapScyllaToGoType(t) + "\n"
|
||||
}
|
||||
typeStr = typeStr + "\t}"
|
||||
typeStr += "\t}"
|
||||
|
||||
return typeStr
|
||||
}
|
||||
@@ -96,8 +96,8 @@ func typeToString(t interface{}) string {
|
||||
return t.(gocql.NativeType).String()
|
||||
case "gocql.CollectionType":
|
||||
collectionType := t.(gocql.CollectionType).String()
|
||||
collectionType = strings.Replace(collectionType, "(", "<", -1)
|
||||
collectionType = strings.Replace(collectionType, ")", ">", -1)
|
||||
collectionType = strings.ReplaceAll(collectionType, "(", "<")
|
||||
collectionType = strings.ReplaceAll(collectionType, ")", ">")
|
||||
return collectionType
|
||||
default:
|
||||
panic(fmt.Sprintf("Did not expect %v type in user defined type", tType))
|
||||
|
||||
Reference in New Issue
Block a user