ignore

package module
v0.0.0-...-54115a5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2015 License: BSD-2-Clause Imports: 4 Imported by: 0

README

A .gitignore compliant parser

GoDoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ignorer

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

func Parse

func Parse(ignore string) Ignorer

Parse the contents of an ignore file.

func ParseRel

func ParseRel(ignore, basepath string) Ignorer

Parse an ignore file relative to it's basepath. For instance the file 'foo/.ignore' would have a basepath of 'foo/'. Use of a OS specific separator is okay.

func (Ignorer) Append

func (i Ignorer) Append(ignorers ...Ignorer) Ignorer

Append an Ignorer to another.

func (Ignorer) Ignore

func (i Ignorer) Ignore(fullpath string) bool

Should the file be ignored? If the fullpath is a directory, it must contain a trailing slash. Use of a OS specific file separator is okay.

Jump to

Keyboard shortcuts

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