type Duration ¶| pkg.go.dev
Overview ¶| pkg.go.dev
The proto.Size function returns the size in bytes of the wire-format encoding of a proto.Message by traversing all its fields (including submessages). In particular, it returns the size of how Go Protobuf will encode the message. Typical usages Identifying empty messages Checking if proto.Size returns 0 is an easy way to recognize empty messages: if proto.Size(m) == 0 { // No fields set (or, in proto3, all fields matching the default); // skip processing this message, or return an error, or s...| Protocol Buffers on Protocol Buffers Documentation
func append ¶| pkg.go.dev