1
0
镜像自地址 https://github.com/astaxie/beego.git 已同步 2025-07-17 18:52:16 +00:00

refactor(FileSystem): add comments function

这个提交包含在:
Viktor Vassilyev
2018-11-10 12:34:53 +06:00
父节点 01a99edf80
当前提交 872b787e6c

3
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)