traverse

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsModify

func IsModify(dir string, lastMod time.Time, patterns []string) bool

IsModify checks if any file in dir has been modified after lastMod. patterns should be pre-built by the caller (e.g. via ReadGitignore) and cached across calls to avoid repeated file I/O on every poll.

func ReadGitignore

func ReadGitignore(dir string) []string

ReadGitignore returns simple glob patterns from .gitignore in the given directory. Lines starting with # and empty lines are ignored. Note: only simple glob patterns (e.g. *.log, vendor) are supported.

Types

This section is empty.

Jump to

Keyboard shortcuts

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