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

aliases

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAliases

func GenerateAliases(flags []string, aliases []options.Alias, dir string) (map[string][]string, error)

GenerateAliases returns a map of flag keys to aliases based on config.

func GenerateAliasesFromCommand added in v2.11.5

func GenerateAliasesFromCommand(a options.Alias, flag, dir string) ([]string, error)

func GenerateAliasesFromFilePattern added in v2.11.5

func GenerateAliasesFromFilePattern(a options.Alias, flag, dir string, allFileContents FileContentsMap) ([]string, error)

func GenerateNamingConventionAlias added in v2.11.5

func GenerateNamingConventionAlias(a options.Alias, flag string) (alias string, err error)

Types

type FileContentsMap added in v2.11.5

type FileContentsMap = map[string][]byte

Map of full file path to file contents

Jump to

Keyboard shortcuts

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