fix templates

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-02-02 11:13:29 +03:00
parent 31e99273ca
commit e173bffd10
8 changed files with 44 additions and 42 deletions

View File

@@ -134,7 +134,9 @@ var ProtoHelpersFuncMap = template.FuncMap{
}
return a / b
},
"lenght": func(a []interface{}) int {
return len(a)
},
"snakeCase": xstrings.ToSnakeCase,
"getProtoFile": getProtoFile,
"getMessageType": getMessageType,