fileposition

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToLines

func BytesToLines(data []byte) []string

func ExtractDelimitedRegexpPositionInBlock

func ExtractDelimitedRegexpPositionInBlock(block []string, str string, blockStartLine int, prefix string, suffix string) *models.FilePosition

func ExtractDelimitedStringPositionInBlock

func ExtractDelimitedStringPositionInBlock(block []string, str string, blockStartLine int, prefix string, suffix string) *models.FilePosition

func ExtractStringPositionInBlock

func ExtractStringPositionInBlock(block []string, str string, blockStartLine int) *models.FilePosition

func GetFirstNonEmptyCharacterIndexInLine

func GetFirstNonEmptyCharacterIndexInLine(line string) int

func GetLastNonEmptyCharacterIndexInLine

func GetLastNonEmptyCharacterIndexInLine(line string) int

func InJSON

func InJSON[P models.IFilePosition](groupKey string, dependencies map[string]P, lines []string, offset int)

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

func ShouldExcludePath(dir, path string, excludePaths []string) (bool, string, error)

ShouldExcludePath checks if a given path should be excluded based on a list of exclusion patterns.

func ToRelativePath

func ToRelativePath(scanPath string, packagePath string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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