Closed hori-ryota closed 5 years ago
If using slice arguments in constructor, following panic messages.
panic: arg 1 of type "[]uint" cannot be assigned or converted to type "uint" for provider constructor ...
This error cause following code for variadic methods in provider.go
if i < fnType.NumIn() { inType = fnType.In(i) } else { inType = fnType.In(fnType.NumIn() - 1) } if inType.Kind() == reflect.Slice { inType = inType.Elem() }
If using slice arguments in constructor, following panic messages.
This error cause following code for variadic methods in provider.go