model

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileInfo

type FileInfo struct {
	os.FileInfo
	Path string
}

Extends os.FileInfo in order to provide the path too

type Match

type Match struct {
	LineNumber int
	Content    string
}

func NewMatch

func NewMatch(line int, content string) *Match

Creates a new match given the line number and the respective string content

type Options

type Options struct {
	MatchAll   bool
	Pattern    *regexp.Regexp
	Exclude    []string
	Include    []string
	LimitBytes int
}

type OutputHandler

type OutputHandler interface {
	AddMatches(path string, matches []*Match)
	AddPathError(path string, e error)
}

Provides methods for handling output for matches

type PathWalk

type PathWalk interface {
	Walk(f filepath.WalkFunc) error
}

Jump to

Keyboard shortcuts

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