Expose namespaced type
This commit is contained in:
parent
99cff16e71
commit
1006df3564
19
helpers.go
19
helpers.go
@ -60,15 +60,16 @@ var ProtoHelpersFuncMap = template.FuncMap{
|
|||||||
"kebabCase": func(s string) string {
|
"kebabCase": func(s string) string {
|
||||||
return strings.Replace(xstrings.ToSnakeCase(s), "_", "-", -1)
|
return strings.Replace(xstrings.ToSnakeCase(s), "_", "-", -1)
|
||||||
},
|
},
|
||||||
"snakeCase": xstrings.ToSnakeCase,
|
"snakeCase": xstrings.ToSnakeCase,
|
||||||
"getMessageType": getMessageType,
|
"getMessageType": getMessageType,
|
||||||
"isFieldMessage": isFieldMessage,
|
"isFieldMessage": isFieldMessage,
|
||||||
"isFieldRepeated": isFieldRepeated,
|
"isFieldRepeated": isFieldRepeated,
|
||||||
"goType": goType,
|
"goType": goType,
|
||||||
"jsType": jsType,
|
"jsType": jsType,
|
||||||
"httpVerb": httpVerb,
|
"namespacedFlowType": namespacedFlowType,
|
||||||
"httpPath": httpPath,
|
"httpVerb": httpVerb,
|
||||||
"shortType": shortType,
|
"httpPath": httpPath,
|
||||||
|
"shortType": shortType,
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
Loading…
Reference in New Issue
Block a user