protobuf-go/internal/encoding
Edward McFarlane 05cbe34333 encoding: add MarshalAppend to protojson and prototext
Adds MarshalAppend methods to allow for byte slices to be reused.
Copies signature from the binary encoding.

Small changes to internal json and text libraries to use strconv
AppendInt and AppendUint for number encoding.

Change-Id: Ife7c8979c1c153a0a0bf9b70b296b8158d38dffc
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/489615
Reviewed-by: Edward McFarlane <emcfarlane000@gmail.com>
Reviewed-by: Joseph Tsai <joetsai@digital-static.net>
Reviewed-by: Lasse Folger <lassefolger@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
2023-05-01 15:10:15 +00:00
..
defval all: remove shorthand import aliases 2022-05-24 20:05:50 +00:00
json encoding: add MarshalAppend to protojson and prototext 2023-05-01 15:10:15 +00:00
messageset all: reformat with go1.19 gofmt 2022-07-21 16:01:13 +00:00
tag all: remove shorthand import aliases 2022-05-24 20:05:50 +00:00
text encoding: add MarshalAppend to protojson and prototext 2023-05-01 15:10:15 +00:00