ignore

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Presets = map[string][]Pattern{
	"generated": {
		{Glob: "**/*.pb.go"},
		{Glob: "**/*_gen.go"},
		{Glob: "**/*_generated.go"},
		{Glob: "**/mock/**"},
		{Glob: "**/mocks/**"},
		{Glob: "**/*_mock.go"},
		{Glob: "**/ent/**"},
		{Glob: "**/sqlc/**"},
	},
}

Functions

func PresetNames

func PresetNames() []string

Types

type Matcher

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

func Load

func Load(path string) (*Matcher, error)

func LoadWithPreset

func LoadWithPreset(path string, preset string) (*Matcher, error)

func NewMatcher

func NewMatcher(patterns []Pattern) *Matcher

func (*Matcher) Empty

func (m *Matcher) Empty() bool

func (*Matcher) Match

func (m *Matcher) Match(path string) bool

func (*Matcher) Patterns

func (m *Matcher) Patterns() []Pattern

type Pattern

type Pattern struct {
	Glob   string
	Negate bool
}

Jump to

Keyboard shortcuts

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