conf

package
v0.0.0-...-1d6347e Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultDir used when is no value of '-d' option
	DefaultDir = "."
	// DefaultFilenameExt used when is no value of '-f' option
	DefaultFilenameExt = "*"
	// MustIncludeSkipPaths add directories that not need to be find,
	// typing '-s .git' every time is annoying.
	MustIncludeSkipPaths = ".git,tmp"
	// KoreanPattern is a regular expression to look up Korean(Hangul)
	KoreanPattern = "\\p{Hangul}"
)

Variables

View Source
var ErrSkipPathsIsRequired = errors.New("'SkipPaths' is required")

ErrSkipPathsIsRequired .

Functions

This section is empty.

Types

type Options

type Options struct {
	Cpuprofile        string
	Memprofile        string
	DirPathToFind     string
	FileExtToScan     string
	IgnoreRegexString string
	Verbose           bool
	Interactive       bool
	ErrorOnly         bool
	// contains filtered or unexported fields
}

Options .

func Opts

func Opts() *Options

Opts returns the Values needed to operate application.

func (*Options) Ignore

func (o *Options) Ignore() (*regexp.Regexp, error)

Ignore parses a ignore regular expression and returns, if successful, a Regexp object that can be used to match against text.

func (*Options) Match

func (o *Options) Match() (*regexp.Regexp, error)

Match parses a Korean regular expression and returns, if successful, a Regexp object that can be used to match against text.

func (*Options) SkipPathsRegex

func (o *Options) SkipPathsRegex() (*regexp.Regexp, error)

SkipPathsRegex parses a skip path regular expression and returns, if successful, a Regexp object that can be used to match against text.

Jump to

Keyboard shortcuts

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