ignore

package
v0.0.0-...-22228af Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: MIT Imports: 6 Imported by: 0

README

This package provides simple functions for parsing and using a gitignore like file dedicated to go files in a directory.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileMatches

func CheckFileMatches(filePath string, gitignoreEntries []GitignoreEntry) bool

func NotIngoredGoFiles

func NotIngoredGoFiles(dirPath string, gitignoreEntries []GitignoreEntry) ([]string, error)

NotIngoredGoFiles returns the list of files that are not ignored

Types

type GitignoreEntry

type GitignoreEntry struct {
	Pattern   string
	IsNegated bool
}

func ParseGoGitignore

func ParseGoGitignore(filename string) ([]GitignoreEntry, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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