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

Add stringFileOptionsExtension #144

Closed ogero closed 5 years ago

ogero commented 5 years ago

Enables custom FileOptions.

Usage:

// some.proto
import "google/protobuf/descriptor.proto";

extend google.protobuf.FileOptions {
  string my_file_option = 50000;
}

option (my_file_option) = "foo bar";
// some.tmpl
{{ stringFileOptionsExtension 50000 .File }}
github-actions[bot] commented 4 years ago

:tada: This PR is included in version 1.8.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: