go/src/bytes
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
..
boundary_test.go bytes: test for page boundary crosses on sep of Index 2021-11-02 17:31:50 +00:00
buffer.go all: fix misuses of "a" vs "an" 2023-04-04 14:20:53 +00:00
buffer_test.go std: fix various nilness findings 2023-04-20 01:07:29 +00:00
bytes.go all: add a few links in package godocs 2023-03-25 10:16:23 +00:00
bytes_test.go bytes, strings: add ContainsFunc 2023-01-24 22:06:45 +00:00
compare_test.go internal/bytealg: correct alignment checks for compare/memequal on riscv64 2022-09-19 18:59:50 +00:00
example_test.go bytes: add Buffer.Available and Buffer.AvailableBuffer 2023-03-13 17:03:14 +00:00
export_test.go bytes, internal/bytealg: simplify Equal 2019-04-24 00:56:36 +00:00
reader.go bytes: document that Reader.Reset affects the result of Size 2022-07-26 14:20:34 +00:00
reader_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00