From 872b787e6c6e076129130052de74b50e77ec6a66 Mon Sep 17 00:00:00 2001 From: Viktor Vassilyev Date: Sat, 10 Nov 2018 12:34:53 +0600 Subject: [PATCH] refactor(FileSystem): add comments function --- fs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs.go b/fs.go index cda63c6c..bf7002ad 100644 --- a/fs.go +++ b/fs.go @@ -13,6 +13,9 @@ func (d FileSystem) Open(name string) (http.File, error) { return os.Open(name) } +// Walk walks the file tree rooted at root in filesystem, calling walkFn for each file or +// directory in the tree, including root. All errors that arise visiting files +// and directories are filtered by walkFn. func Walk(fs http.FileSystem, root string, walkFn filepath.WalkFunc) error { f, err := fs.Open(root)