I have a setup like below. How can I access my extension values from HANDLER enum in Go?
extend google.protobuf.EnumValueOptions {
string my_option = 98999;
}
enum Hello {
HANDLER = 0[
(my_option) = "Hello option.."
];
}
I have followed the suggestion from How to access proto.EnumValueOptions extension values in Golang?. However, it loops over all enums and might cause some performance issue as my Enums have 100 of values. Is there a cleaner and efficient way to extract extension details from Enums?