package
0.0.0-20240223163233-798fd1e94a8e
Repository: https://github.com/sourcegraph/go-diff-patch.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
CompareURI performs a three-valued comparison of two URIs.
FileSpan returns a span within the file referenced by start and end, using a token.File to translate between offsets and positions.
No description provided by the author
No description provided by the author
NewRange creates a new Range from a token.File and two valid positions within it.
NewTokenFile returns a token.File for the given file content.
Parse returns the location represented by the input.
ParseInDir is like Parse, but interprets paths relative to wd.
ToOffset converts a 1-based line and utf-8 column index into a byte offset in the file corresponding to tf.
ToPosition converts a byte offset in the file corresponding to tf into 1-based line and utf-8 column indexes.
URIFromPath returns a span URI for the supplied file path.
No description provided by the author
# Variables
Invalid is a span that reports false from IsValid.
# Type aliases
URI represents the full URI for a file.