go/src/encoding
Alan Donovan 9d35ebba06 std: fix various nilness findings
Found by running
$ go run golang.org/x/tools/go/analysis/passes/nilness/cmd/nilness@latest std

No actual bugs--other than one panic(nil)--but a
few places where error nilness was unclear.

Change-Id: Ia916ba30f46f29c1bcf928cc62280169b922463a
Reviewed-on: https://go-review.googlesource.com/c/go/+/486675
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Alan Donovan <adonovan@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Alan Donovan <adonovan@google.com>
2023-04-20 01:07:29 +00:00
..
ascii85 encoding: use strings.Builder 2022-09-06 15:46:20 +00:00
asn1 encoding/asn1: improve memory efficiency of ObjectIdentifier.String 2023-03-29 18:24:36 +00:00
base32 all: remove redundant type conversion 2022-10-06 04:37:00 +00:00
base64 encoding: use strings.Builder 2022-09-06 15:46:20 +00:00
binary encoding/binary: add word size to the error message of the failed constraint 2023-04-04 22:12:53 +00:00
csv encoding/csv: use proper doc comment for Deprecated notes 2022-12-02 16:30:23 +00:00
gob all: fix misuses of "a" vs "an" 2023-04-04 14:20:53 +00:00
hex Revert "hex: fix panic in Decode when len(src) > 2*len(dst)" 2023-02-21 15:35:11 +00:00
json encoding/json: make use of Buffer.AvailableBuffer 2023-03-15 15:41:55 +00:00
pem all: use strings.Builder where appropriate 2022-09-29 22:56:00 +00:00
xml std: fix various nilness findings 2023-04-20 01:07:29 +00:00
encoding.go