inspection

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Discover

func Discover(basePath string, v Visitor) error

Types

type FileFinder

type FileFinder interface {
	Discover(v Visitor)
}

FileFinder defines the contract for an inspector that finds and enumerates/navigates files.

type Visitor

type Visitor interface {
	VisitDir(string, fs.DirEntry)
	VisitFile(string, fs.DirEntry)
}

Visitor defines the contract for a visitor of a finder.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL