mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-04 02:38:50 +00:00
118baf6390
Some companies (e.g., Google) run a profiling service where they may choose to special-case certain symbols in a binary to classify commonly used libraries like protobufs. This CL funnels similar functionality through a single function so that they can be more easily identified. This is by no means a firm statement that these identifiers will never change names, but at least the code documents warnings to avoid changing the name of certain identifiers. This CL provides the following semi-stable symbol names: "google.golang.org/protobuf/proto".MarshalOptions.size "google.golang.org/protobuf/proto".MarshalOptions.marshal "google.golang.org/protobuf/proto".UnmarshalOptions.unmarshal "google.golang.org/protobuf/encoding/prototext".MarshalOptions.marshal "google.golang.org/protobuf/encoding/prototext".UnmarshalOptions.unmarshal "google.golang.org/protobuf/encoding/protojson".MarshalOptions.marshal "google.golang.org/protobuf/encoding/protojson".UnmarshalOptions.unmarshal Merge and Clone are not part of the above set since there is a possibility that MergeOptions will be added in the future. We use an unexported method so that we have the freedom to change the method however we want since profilers do not care about that. Change-Id: Ia79af260d00125f48139420e1e18a86482bd1829 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/234079 Reviewed-by: Damien Neil <dneil@google.com> |
||
---|---|---|
.. | ||
bench_test.go | ||
checkinit_test.go | ||
checkinit.go | ||
decode_gen.go | ||
decode_test.go | ||
decode.go | ||
doc.go | ||
encode_gen.go | ||
encode_test.go | ||
encode.go | ||
equal_test.go | ||
equal.go | ||
extension_test.go | ||
extension.go | ||
merge_test.go | ||
merge.go | ||
messageset_test.go | ||
messageset.go | ||
methods_test.go | ||
nil_test.go | ||
noenforceutf8_test.go | ||
proto_methods.go | ||
proto_reflect.go | ||
proto.go | ||
reset_test.go | ||
reset.go | ||
size_gen.go | ||
size.go | ||
testmessages_test.go | ||
validate_test.go | ||
weak_test.go | ||
wrappers.go |