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

suggestion

package
v0.37.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(slice []string, val string) (int, bool)

Find takes a slice and looks for an element in it. If found it will return it's key, otherwise it will return -1 and a bool of false.

func SubcommandsRequiredWithSuggestions

func SubcommandsRequiredWithSuggestions(cmd *cobra.Command, args []string) error

SubcommandsRequiredWithSuggestions will ensure we have a subcommand provided by the user and augments it with suggestion for commands, alias and help on root command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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