We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c5548c commit 668e29aCopy full SHA for 668e29a
generator/types.go
@@ -376,7 +376,11 @@ func (m *Model) CtorArgs() string {
376
377
if paramsLen == i+1 && sig.Variadic() {
378
typeName = "..." + typeName
379
+ } else // TODO: Dirty fix for #229, address properly inside findableTypeName or typeString
380
+ if collectionElemType(param.Type()) != nil && !strings.HasPrefix(typeName, "[]") {
381
+ typeName = "[]" + typeName
382
}
383
+
384
paramName := param.Name()
385
if paramName == "s" {
386
paramName = fmt.Sprintf("arg%v", i)
0 commit comments