- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for walkFuncs (0.23 sec)
-
src/cmd/link/internal/ld/pcln.go
// Create the runtimeText relocation. sb := ldr.MakeSymbolUpdater(state.pcheader) sb.SetAddr(ctxt.Arch, textStartOff, ldr.Lookup("runtime.text", 0)) } // walkFuncs iterates over the funcs, calling a function for each unique // function and inlined function. func walkFuncs(ctxt *Link, funcs []loader.Sym, f func(loader.Sym)) { ldr := ctxt.loader seen := make(map[loader.Sym]struct{}) for _, s := range funcs {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 29.6K bytes - Viewed (0) -
pkg/volume/volume_linux.go
// - callback walkFunc is invoked on root directory after visiting children dirs and files func walkDeep(root string, walkFunc filepath.WalkFunc) error { info, err := os.Lstat(root) if err != nil { return walkFunc(root, nil, err) } return walk(root, info, walkFunc) } func walk(path string, info os.FileInfo, walkFunc filepath.WalkFunc) error { if !info.IsDir() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 03 19:34:37 UTC 2023 - 6.5K bytes - Viewed (0) -
src/path/filepath/path.go
return string(buf), nil } return targ[t0:], nil } // SkipDir is used as a return value from [WalkFunc] to indicate that // the directory named in the call is to be skipped. It is not returned // as an error by any function. var SkipDir error = fs.SkipDir // SkipAll is used as a return value from [WalkFunc] to indicate that // all remaining files and directories are to be skipped. It is not returned
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 15.5K bytes - Viewed (0) -
pkg/util/filesystem/filesystem.go
ReadFile(filename string) ([]byte, error) TempDir(dir, prefix string) (string, error) TempFile(dir, prefix string) (File, error) ReadDir(dirname string) ([]os.DirEntry, error) Walk(root string, walkFn filepath.WalkFunc) error } // File is an interface that we can use to mock various filesystem operations typically // accessed through the File object from the "os" package type File interface {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 13 01:02:46 UTC 2023 - 1.6K bytes - Viewed (0) -
src/io/fs/walk.go
// is after a failed ReadDir and reports the error from ReadDir. // (If ReadDir succeeds, there is no second call.) // // The differences between WalkDirFunc compared to [path/filepath.WalkFunc] are: // // - The second argument has type [DirEntry] instead of [FileInfo]. // - The function is called before reading a directory, to allow [SkipDir]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 09 08:50:19 UTC 2024 - 4.7K bytes - Viewed (0) -
pkg/util/filesystem/defaultfs.go
func (fs *DefaultFs) ReadDir(dirname string) ([]os.DirEntry, error) { return os.ReadDir(fs.prefix(dirname)) } // Walk via filepath.Walk func (fs *DefaultFs) Walk(root string, walkFn filepath.WalkFunc) error { return filepath.Walk(fs.prefix(root), walkFn) } // defaultFile implements File using same-named functions from "os" type defaultFile struct { file *os.File } // Name via os.File.Name
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 03 07:38:14 UTC 2023 - 4.7K bytes - Viewed (0) -
src/cmd/go/internal/fsys/fsys.go
return false, firstErr } // walk recursively descends path, calling walkFn. Copied, with some // modifications from path/filepath.walk. func walk(path string, info fs.FileInfo, walkFn filepath.WalkFunc) error { if err := walkFn(path, info, nil); err != nil || !info.IsDir() { return err } fis, err := ReadDir(path) if err != nil { return walkFn(path, info, err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 06 18:35:34 UTC 2024 - 22.7K bytes - Viewed (0) -
pkg/kubelet/cm/cgroup_manager_linux.go
continue } // Get a list of pids that are still charged to the pod's cgroup pids, err = getCgroupProcs(dir) if err != nil { continue } pidsToKill.Insert(pids...) // WalkFunc which is called for each file and directory in the pod cgroup dir visitor := func(path string, info os.FileInfo, err error) error { if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 27 13:02:15 UTC 2023 - 26.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"SkipAll", Var, 20}, {"SkipDir", Var, 0}, {"Split", Func, 0}, {"SplitList", Func, 0}, {"ToSlash", Func, 0}, {"VolumeName", Func, 0}, {"Walk", Func, 0}, {"WalkDir", Func, 16}, {"WalkFunc", Type, 0}, }, "plugin": { {"(*Plugin).Lookup", Method, 8}, {"Open", Func, 8}, {"Plugin", Type, 8}, {"Symbol", Type, 8}, }, "reflect": { {"(*MapIter).Key", Method, 12},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)