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 68 forks source link

fix (gotype helper): when leading pkg is empty string, remove leading dot #54

Closed proullon closed 7 years ago

moul commented 7 years ago

Nice, I was always hacking with "if" conditions in the template itself