ignore

package
v0.0.0-...-37a1ef5 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

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

List is a list of ignore patterns.

func Read

func Read(r io.Reader) (*List, error)

Read reads an ignore list from reader r.

func ReadFile

func ReadFile(name string) (*List, error)

ReadFile reads an ignore list from the named file. Reading a non-existent file returns an empty list, and no error.

func (*List) Match

func (l *List) Match(path string) bool

Match returns whether path matches any pattern in this list.

Jump to

Keyboard shortcuts

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