...

Package gitignore

import "github.com/monochromegane/go-gitignore"
Overview
Index

Overview ▾

Variables

var Separator = string(filepath.Separator)

type DummyIgnoreMatcher

type DummyIgnoreMatcher bool

func (DummyIgnoreMatcher) Match

func (d DummyIgnoreMatcher) Match(path string, isDir bool) bool

type IgnoreMatcher

type IgnoreMatcher interface {
    Match(path string, isDir bool) bool
}

func NewGitIgnore

func NewGitIgnore(gitignore string, base ...string) (IgnoreMatcher, error)

func NewGitIgnoreFromReader

func NewGitIgnoreFromReader(path string, r io.Reader) IgnoreMatcher