If I have a function that returns a proto and I want the proto to be read-only, what is the best way to achieve that in go?
In c++, I can return a const reference, and in java, the proto itself is always read-only. However, go proto exports all members and allows user to overwrite. Is there a way to prevent user accidentally writes to the proto? -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/d9edebd6-6096-47a9-bc12-3ca23cb59bb2%40googlegroups.com.
