Movatterモバイル変換


[0]ホーム

URL:


dirwalk

package
v1.92.3Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2025 License:BSD-3-ClauseImports:10Imported by:6

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package dirwalk contains code to walk a directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcWalkShallow

func WalkShallow(dirNamemem.RO, fnWalkFunc)error

WalkShallow reads the entries in the named directory and calls fn for each.It does not recurse into subdirectories.

If fn returns an error, iteration stops and WalkShallow returns that value.

On Linux, WalkShallow does not allocate, so long as certain methods on theWalkFunc's DirEntry are not called which necessarily allocate.

Types

typeWalkFunc

type WalkFunc func(namemem.RO, defs.DirEntry)error

WalkFunc is the callback type used with WalkShallow.

The name and de are only valid for the duration of func's calland should not be retained.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp