spell

package
v0.0.0-...-c05ff20 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package spell file defines a simple spelling checker for use in attribute errors such as "no such field .foo; did you mean .food?".

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