stringman

package
v0.0.9-beta Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package stringman provides utilities for working with strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClosestLevensteinString

func ClosestLevensteinString(wrongString string, possibleStrings []string) string

ClosestLevensteinString finds the closest string from a list of possible strings using Levenshtein distance.

func ClosestString

func ClosestString(input string, candidates []string, sizes []int) string

ClosestString returns the closest string from a list of possible strings.

func TransformString

func TransformString(input string) string

TransformString replaces all non-alphanumeric characters with a dash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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