Help us shape the future of Go! Take the 2026 Go Developer Survey

suggest

package
v1.261022.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands(input string, candidates []string) []string

Commands returns up to three likely command-name suggestions for the provided input, ranked by prefix relationship, then whole hyphen-component containment, then edit distance. It is intentionally conservative: if we aren't reasonably confident, it returns nil.

func Distance

func Distance(a, b string) int

Distance exposes the suggestion edit-distance metric to API operation lookup.

func Flags added in v1.260722.0

func Flags(input string, candidates []string) []string

Flags returns likely flag-name suggestions, including command-specific identifier forms such as id/version-id and subscription-id/id.

Types

This section is empty.

Jump to

Keyboard shortcuts

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