spell

package
v0.40.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2022 License: Apache-2.0 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?". (this source was copied from https://github.com/google/starlark-go/blob/b0039bd2cfe369fe8f2bdba0614bafd1f9402dbb/internal/spell/spell.go)

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