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

Fixed getMessageType to use equality comparison to avoid side effects #36

Closed vgheri closed 7 years ago

vgheri commented 7 years ago

Example: ProductTag | getMessageType returns Tag if Tag is defined before ProductTag in the same file.