fix cli dec of array

master
Paulo Simão 2020-12-13 09:23:36 -03:00
parent 3d72f44205
commit 6aefdd58a1
1 changed files with 7 additions and 0 deletions

View File

@ -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 ""
}