File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -317,14 +317,14 @@ func encodeTypes(
317317 for i , param := range typeDef .Parameters {
318318 if len (isEnum ) != 0 {
319319 typesArr := typeNameRegexp .FindAllString (param .Type , - 1 )
320- var fullTypeName string
320+ var fullTypeName strings. Builder
321321 for i , typeNam := range typesArr {
322- fullTypeName += `"` + typeNam + `"`
322+ fullTypeName . WriteString ( `"` + typeNam + `"` )
323323 if i < (len (typesArr ) - 1 ) {
324- fullTypeName += `,`
324+ fullTypeName . WriteString ( `,` )
325325 }
326326 }
327- buf .WriteString (fmt .Sprintf (quotationMark + "%s" + quotationMark + ":" + `(` + "%s" + `)` , param .Name , fullTypeName ))
327+ buf .WriteString (fmt .Sprintf (quotationMark + "%s" + quotationMark + ":" + `(` + "%s" + `)` , param .Name , fullTypeName . String () ))
328328
329329 for _ , typeNam := range typesArr {
330330 err = verifyTypeName (TypeParameter {Type : typeNam , Name : "" , Contains : "" })
You can’t perform that action at this time.
0 commit comments