protobuf-go/internal/encoding/json
Joe Tsai 36dc22ddb8 encoding: use strs.UnsafeString to avoid duplicated code
The strs.UnsafeString casts a []byte as a string.
This allows us to avoid duplicated functionality.

Change-Id: I9930b94bae35eac0f98c0fa62963b300bc8d7e49
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/185459
Reviewed-by: Herbie Ong <herbie@google.com>
2019-07-10 07:01:20 +00:00
..
bench_test.go all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
decode_test.go all: remove non-fatal UTF-8 validation errors (and non-fatal in general) 2019-06-20 20:55:13 +00:00
decode.go all: remove non-fatal UTF-8 validation errors (and non-fatal in general) 2019-06-20 20:55:13 +00:00
encode_test.go all: remove non-fatal UTF-8 validation errors (and non-fatal in general) 2019-06-20 20:55:13 +00:00
encode.go all: change module to google.golang.org/protobuf 2019-05-14 17:28:29 +00:00
number.go internal/encoding/json: improve Value.Int,Uint by reducing allocations 2019-04-06 04:16:05 +00:00
string.go encoding: use strs.UnsafeString to avoid duplicated code 2019-07-10 07:01:20 +00:00
types.go