ignore

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("Not Found")
)

Functions

func FindGitignore

func FindGitignore(name string) (ignore.GitIgnore, error)

getIgnore attempts to find and parse a .gitignore file recursively. It searches for the .gitignore file starting from the given path and traversing up the directory tree. It returns a pointer to the parsed ignore.GitIgnore object if found, otherwise nil.

Types

type Filesystem

type Filesystem struct{}

func (Filesystem) Ignore

func (f Filesystem) Ignore(name string) bool

Jump to

Keyboard shortcuts

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