protobuf-go/encoding
Joe Tsai cdb7773569 encoding: switch ordering of Unmarshal arguments
While it is general convention that the receiver being mutated
is the first argument, the standard library specifically goes against
this convention when it comes to the Unmarshal function.

Switch the ordering of the Unmarshal function to match the Go stdlib.

Change-Id: I893346680233ef9fec7104415a54a0a7ae353378
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/177258
Reviewed-by: Damien Neil <dneil@google.com>
2019-05-14 23:18:07 +00:00
..
jsonpb encoding: switch ordering of Unmarshal arguments 2019-05-14 23:18:07 +00:00
protojson encoding: switch ordering of Unmarshal arguments 2019-05-14 23:18:07 +00:00
prototext encoding: switch ordering of Unmarshal arguments 2019-05-14 23:18:07 +00:00
testprotos all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
textpb encoding: switch ordering of Unmarshal arguments 2019-05-14 23:18:07 +00:00
bench_test.go encoding: switch ordering of Unmarshal arguments 2019-05-14 23:18:07 +00:00