1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-16 11:43:32 +00:00

refactor(FileSystem): add comments function

This commit is contained in:
Viktor Vassilyev 2018-11-10 12:34:53 +06:00
parent 01a99edf80
commit 872b787e6c

3
fs.go
View File

@ -13,6 +13,9 @@ func (d FileSystem) Open(name string) (http.File, error) {
return os.Open(name) 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 { func Walk(fs http.FileSystem, root string, walkFn filepath.WalkFunc) error {
f, err := fs.Open(root) f, err := fs.Open(root)