moul / protoc-gen-gotemplate

:open_file_folder: generic protocol generator based on golang's text/template (grpc/protobuf)
https://manfred.life/protoc-gen-gotemplate
MIT License
438 stars 70 forks source link

Additional sprig rule to handle Go convention #77

Closed abronan closed 6 years ago

abronan commented 6 years ago

This PR adds two functions to the sprig func map to conform to Go convention while generating templates with Go code to handle fields containing id.

Signed-off-by: Alexandre Beslic abeslic@abronan.com