1
0
mirror of https://github.com/golang/go synced 2024-11-07 12:46:16 -07:00
go/src/io
Drew Richardson 971c7154b0 io/fs: implement subFS.Sub
Calling fs.Sub with the result of fs.Sub multiple times creates a deep
call stack for Open and other methods. Enhance the fs.FS returned by
fs.Sub to implement fs.SubFS and reduce the call stack.

Fixes #45349

Change-Id: I10e10501e030176e10e2ae5ad260212e5c784bed
Reviewed-on: https://go-review.googlesource.com/c/go/+/306769
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
2021-04-03 20:14:37 +00:00
..
fs io/fs: implement subFS.Sub 2021-04-03 20:14:37 +00:00
ioutil io/ioutil: use correct Go version in redirection comments 2021-03-19 01:02:56 +00:00
example_test.go io: add error check to WriteString Example test 2021-03-13 18:03:52 +00:00
export_test.go io: unexport ErrBadWriteCount 2020-10-16 17:52:59 +00:00
io_test.go io: unexport ErrBadWriteCount 2020-10-16 17:52:59 +00:00
io.go io: fix spelling in documentation for io.Discard 2021-03-23 22:17:52 +00:00
multi_test.go all: update references to symbols moved from io/ioutil to io 2020-10-20 18:41:18 +00:00
multi.go
pipe_test.go
pipe.go