Help us shape the future of Go! Take the 2026 Go Developer Survey

filesystem

package
v0.3.21 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IgnoreMatcher

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

IgnoreMatcher applies .gitignore-style patterns relative to a workspace root.

func LoadIgnoreMatcher

func LoadIgnoreMatcher(workspaceRoot string) (*IgnoreMatcher, error)

LoadIgnoreMatcher reads the workspace-root .gitignore when present and always ignores .git, node_modules, and .env.

func (*IgnoreMatcher) Ignored

func (m *IgnoreMatcher) Ignored(relPath string, isDir bool) bool

Ignored reports whether relPath (slash-separated, relative to workspace root) should be skipped during directory walks.

Jump to

Keyboard shortcuts

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