filesfind

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: MPL-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoExtension = fmt.Errorf("file extension is required")
View Source
var FilesFindingRootPath = func() string {
	wd, err := os.Getwd()
	if err != nil {
		slog.Error("error getting current working directory", slog.String("error", err.Error()))
		os.Exit(1)
	}
	return wd
}()

Functions

func FindFilesByExtension

func FindFilesByExtension(args FilesFindingArgs) ([]string, error)

Types

type FilesFindingArgs

type FilesFindingArgs struct {
	Extension   string
	Paths       []string
	IgnorePaths []string
	Recursive   bool
}

Jump to

Keyboard shortcuts

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