fix cli dec of array
This commit is contained in:
1 parent
3d72f44205
commit
6aefdd58a1
1 file changed
+7
@@ -71,3 +71,10 @@ func APIParamTypeDecToString(t *APIParamType) string {
|
|||||||
ret = ret + t.Typename
|
ret = ret + t.Typename
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func APIParamTypeUseRef(t *APIParamType) string {
|
||||||
|
if t.IsArray || !t.Ispointer {
|
||||||
|
return "&"
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
Reference in new issue
Block a user