textutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package textutil holds small text helpers shared across compiler packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EditDistance

func EditDistance(a, b string) int

EditDistance returns the Levenshtein distance between two ASCII strings. Compiler callers use it only for short did-you-mean candidates.

func Plural

func Plural(n int) string

Plural returns the English plural suffix for a counted noun.

Types

This section is empty.

Jump to

Keyboard shortcuts

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