You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I am writing a plugin in protobuf-go using protogen.
My question is: how can I access options.pkg.name and its value "id" from *protogen.Field?
It seems that I can call field.Desc.Options() which does return *descriptorpb.FieldOptions which has the options in an unexported field : extensionFields protoimpl.ExtensionFields so I'm unable to access it.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi there, I have the following protobuf file:
And I am writing a plugin in protobuf-go using protogen.
My question is: how can I access
options.pkg.name
and its value "id" from *protogen.Field?It seems that I can call
field.Desc.Options()
which does return*descriptorpb.FieldOptions
which has the options in an unexported field :extensionFields protoimpl.ExtensionFields
so I'm unable to access it.Thanks!
The text was updated successfully, but these errors were encountered: