ignore

package
v0.6.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ignore implements ignoring files based on 'gitignore' syntax.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Matcher

type Matcher func(path string, isDir bool) bool

Matcher returns true if the given path matches the pattern.

func ParseGitIgnore

func ParseGitIgnore(baseDir, pattern string) (Matcher, error)

ParseGitIgnore returns a Matcher for a given gitignore-formatted pattern.

Jump to

Keyboard shortcuts

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