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
437 stars 70 forks source link

fix type int32 in index helper #90

Closed tkerambloch closed 6 years ago

weitzj commented 6 years ago

@abronan Could you care to explain why this change was needed? If I iterate with a range operator, I am unable to use it's counter, since it is int. And there is now way for me to convert the int to int32 to be used by the index helper.

batazor commented 4 years ago

Maybe return int? @moul