textmatch

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LevenshteinDistance

func LevenshteinDistance(a, b string) int

LevenshteinDistance computes the byte-based edit distance between two strings.

func LineSimilarity

func LineSimilarity(a, b string) float64

LineSimilarity returns the normalized byte-based Levenshtein similarity of two lines after trimming surrounding whitespace.

func NumberedLineRange

func NumberedLineRange(content string, startLine, endLine int) string

NumberedLineRange extracts a one-indexed inclusive line range and prefixes line numbers.

func Slug

func Slug(value string) string

Slug converts a display string to a lowercase filesystem-safe identifier.

Types

This section is empty.

Jump to

Keyboard shortcuts

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