spell

package
v0.49.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package spell provides the ability to suggest an exact spelling of a word.

In the context ytt, this is useful for errors that involve misspelled identifiers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Nearest

func Nearest(x string, candidates []string) string

Nearest returns the element of candidates nearest to x using the Levenshtein metric, or "" if none were promising.

Types

This section is empty.

Jump to

Keyboard shortcuts

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