go/src/encoding/json
Ariel Mashraki a8b59fe3cd encoding/json: fix package shadowing in MarshalIndent example
Prior to this CL, pasting the example from the website causes a
compilation error for some programs because it was shadowing the
"json" package.

Change-Id: I39b68a66ca99468547f2027a7655cf1387b61e95
Reviewed-on: https://go-review.googlesource.com/c/go/+/301492
Reviewed-by: Joe Tsai <joetsai@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Joe Tsai <joetsai@google.com>
Run-TryBot: Joe Tsai <joetsai@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
2021-03-14 19:58:14 +00:00
..
testdata
bench_test.go all: update references to symbols moved from io/ioutil to io 2020-10-20 18:41:18 +00:00
decode.go encoding/json: reduce allocated space in Unmarshal 2021-02-24 14:12:16 +00:00
decode_test.go Revert "encoding/json: implement Is on all errors" 2020-09-14 21:33:20 +00:00
encode.go encoding/json: marshal maps using reflect.Value.MapRange 2021-03-05 02:28:11 +00:00
encode_test.go encoding/json: marshal maps using reflect.Value.MapRange 2021-03-05 02:28:11 +00:00
example_marshaling_test.go
example_test.go encoding/json: fix package shadowing in MarshalIndent example 2021-03-14 19:58:14 +00:00
example_text_marshaling_test.go
fold.go
fold_test.go
fuzz.go all: go fmt std cmd (but revert vendor) 2021-02-20 03:54:50 +00:00
indent.go
number_test.go
scanner.go encoding/json: revert "add "json: " prefix to SyntaxError messages" 2020-12-01 22:51:45 +00:00
scanner_test.go Revert "encoding/json: implement Is on SyntaxError" 2020-09-14 21:33:53 +00:00
stream.go
stream_test.go all: update references to symbols moved from io/ioutil to io 2020-10-20 18:41:18 +00:00
tables.go
tagkey_test.go encoding/json: allow semicolon in field key / struct tag 2020-09-24 18:05:54 +00:00
tags.go
tags_test.go