ignore

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ignore provides workspace ignore rules for indexing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matcher

type Matcher struct {
	// contains filtered or unexported fields
}

Matcher defines simple ignore rules for directories and files during indexing.

func NewMatcher

func NewMatcher(root string) *Matcher

NewMatcher creates a new matcher with default ignore rules.

func (*Matcher) ShouldSkipDir

func (m *Matcher) ShouldSkipDir(path string, entry fs.DirEntry) bool

ShouldSkipDir returns true if the directory should be ignored.

func (*Matcher) ShouldSkipFile

func (m *Matcher) ShouldSkipFile(_ string, entry fs.DirEntry) bool

ShouldSkipFile returns true if the file should be ignored.

Jump to

Keyboard shortcuts

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