ignorefile

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IIgnoreFile added in v1.4.0

type IIgnoreFile interface {
	fmt.Stringer
	WriteLines(...string) error
	ReadLines() ([]string, error)
	Path() string
}

func InitDefaultIgnoreFile added in v1.4.0

func InitDefaultIgnoreFile() (IIgnoreFile, error)

func NewIgnoreFile added in v1.4.0

func NewIgnoreFile(path string) IIgnoreFile

type IIgnoresContainer added in v1.4.0

type IIgnoresContainer interface {
	fmt.Stringer
	AddIgnoreFile(IIgnoreFile)
	ReadLines() ([]string, error)
	Paths() []string
}

func NewIgnoresContainer added in v1.4.0

func NewIgnoresContainer(names ...string) IIgnoresContainer

type IgnoreFile added in v1.4.0

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

func (*IgnoreFile) Path added in v1.4.0

func (i *IgnoreFile) Path() string

func (*IgnoreFile) ReadLines added in v1.5.4

func (i *IgnoreFile) ReadLines() ([]string, error)

func (*IgnoreFile) String added in v1.4.0

func (i *IgnoreFile) String() string

func (*IgnoreFile) WriteLines added in v1.5.4

func (i *IgnoreFile) WriteLines(lines ...string) error

type IgnoresContainer added in v1.4.0

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

func (*IgnoresContainer) AddIgnoreFile added in v1.4.0

func (ic *IgnoresContainer) AddIgnoreFile(ignFile IIgnoreFile)

func (*IgnoresContainer) Paths added in v1.4.0

func (ic *IgnoresContainer) Paths() []string

func (*IgnoresContainer) ReadLines added in v1.5.4

func (ic *IgnoresContainer) ReadLines() ([]string, error)

func (*IgnoresContainer) String added in v1.4.0

func (ic *IgnoresContainer) String() string

Jump to

Keyboard shortcuts

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