Documentation
¶
Index ¶
- func BytesToLines(data []byte) []string
- func ExtractDelimitedRegexpPositionInBlock(block []string, str string, blockStartLine int, prefix string, suffix string) *models.FilePosition
- func ExtractDelimitedStringPositionInBlock(block []string, str string, blockStartLine int, prefix string, suffix string) *models.FilePosition
- func ExtractStringPositionInBlock(block []string, str string, blockStartLine int) *models.FilePosition
- func GetFirstNonEmptyCharacterIndexInLine(line string) int
- func GetLastNonEmptyCharacterIndexInLine(line string) int
- func InJSON[P models.IFilePosition](groupKey string, dependencies map[string]P, lines []string, offset int)
- func InTOML[P models.IFilePosition](groupKey string, otherKey string, dependencies []P, lines []string)
- func IsFilePositionExtractedSuccessfully(filePosition models.FilePosition) bool
- func ShouldExcludePath(dir, path string, excludePaths []string) (bool, string, error)
- func ToRelativePath(scanPath string, packagePath string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToLines ¶
func ExtractStringPositionInBlock ¶
func ExtractStringPositionInBlock(block []string, str string, blockStartLine int) *models.FilePosition
func InTOML ¶
func InTOML[P models.IFilePosition](groupKey string, otherKey string, dependencies []P, lines []string)
func IsFilePositionExtractedSuccessfully ¶
func IsFilePositionExtractedSuccessfully(filePosition models.FilePosition) bool
func ShouldExcludePath ¶ added in v0.0.3
ShouldExcludePath checks if a given path should be excluded based on a list of exclusion patterns.
func ToRelativePath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.