]> Cypherpunks repositories - gostls13.git/commit
io/fs: add Glob and GlobFS
authorRuss Cox <rsc@golang.org>
Mon, 6 Jul 2020 15:27:12 +0000 (11:27 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 20 Oct 2020 17:53:14 +0000 (17:53 +0000)
commitb64202bc29b9c1cf0118878d1c0acc9cdb2308f6
tree6c632cefefa5dbb996d04f57e7a6e2282ffae4bb
parent7a131acfd142f0fc7612365078b9f00e371fc0e2
io/fs: add Glob and GlobFS

Add Glob helper function, GlobFS interface, and test.
Add Glob method to fstest.MapFS.
Add testing of Glob method to fstest.TestFS.

For #41190.

Change-Id: If89dd7f63e310ba5ca2651340267a9ff39fcc0c7
Reviewed-on: https://go-review.googlesource.com/c/go/+/243915
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/go/build/deps_test.go
src/io/fs/glob.go [new file with mode: 0644]
src/io/fs/glob_test.go [new file with mode: 0644]
src/testing/fstest/mapfs.go
src/testing/fstest/testfs.go