files

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFlagType

func GetFlagType(defaultValue string) (string, string)

func ListFiles

func ListFiles(dir string, toExclude []string) ([]string, error)

ListFiles list all the files in the selected directory that does not match exluded patterns

func SearchFiles

func SearchFiles(cfg *config.Config, path string, resultChannel chan model.FileSearchResult)

SearchFiles search code pattern in files and return results and error

Types

type FlagIndexesStruct added in v0.9.0

type FlagIndexesStruct struct {
	FlagIndexes [][]int
	// contains filtered or unexported fields
}

type MatchVariableDefaultValue added in v0.9.0

type MatchVariableDefaultValue struct {
	Variable         string
	FlagDefaultValue string
	FlagType         string
}

type MatchVariableFlag added in v0.9.0

type MatchVariableFlag struct {
	Variable          string
	FlagKey           string
	CodeLines         string
	CodeLineHighlight int
	CodeLineURL       string
	LineNumber        int
}

type RegexStruct added in v0.9.0

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

Jump to

Keyboard shortcuts

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