golang

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

package golang contains go related actions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionAnalyzers

func ActionAnalyzers() carapace.Action

ActionAnalyzers completes analyzers

assign (check for useless assignments)
atomic (check for common mistakes using the sync/atomic package)

func ActionArchitectures

func ActionArchitectures() carapace.Action

ActionArchitectures completes known architectures

386
amd64

func ActionBuildTags

func ActionBuildTags() carapace.Action

ActionBuildTags completes build tags

release
debug

func ActionBuildmodes

func ActionBuildmodes() carapace.Action

ActionBuildmodes completes build modes

archive (Build the listed non-main packages into .a files)
c-archive (Build the listed main package, plus all packages it imports, into a C archive file)

func ActionEnvironmentVariables

func ActionEnvironmentVariables() carapace.Action

ActionEnvironmentVariables completes go environment variables.

GOHOSTARCH (amd64)
GOHOSTOS (linux)

func ActionFuncs

func ActionFuncs(files ...string) carapace.Action

ActionFuncs completes go funcs

main
ActionFuncs

func ActionMethodOrFields

func ActionMethodOrFields(opts MethodOrFieldOpts) carapace.Action

ActionMethodOrFields completes methods and fields of given symbol

Cache
Chdir

func ActionModuleDownloadModes

func ActionModuleDownloadModes() carapace.Action

ActionModuleDownloadModes completes module download modes

readonly (disable implicit automatic updating of go.mod)
vendor (assumes that the vendor directory holds the correct copies of dependencies)

func ActionModuleSearch

func ActionModuleSearch() carapace.Action

ActionModuleSearch completes git repos in module format

github.com/carapace-sh/carapace@v0.0.1
github.com/spf13/cobra@v0.0.2

func ActionModules

func ActionModules(opts ModuleOpts) carapace.Action

ActionModules completes ModuleOpts

github.com/carapace-sh/carapace
github.com/carapace-sh/carapace-spec@v0.0.1

func ActionOperatingSystems

func ActionOperatingSystems() carapace.Action

ActionOperatingSystems completes known operating systems

aix
android

func ActionPackages

func ActionPackages() carapace.Action

ActionPackages completes packages

encoding/json
github.com/carapace-sh/carapace-bin/completers/go_completer

func ActionRewrites

func ActionRewrites() carapace.Action

ActionRewrites completes rewrites

egl (Fixes initializers of EGLDisplay)
eglconf (Fixes initializers of EGLConfig)

func ActionSymbolTypes

func ActionSymbolTypes() carapace.Action

ActionSymbolTypes completes symbol types

t (static text segment symbol)
R (read-only data segment symbol)

func ActionSymbols

func ActionSymbols(opts SymbolOpts) carapace.Action

ActionSymbols completes symbols of given package

Action
ActionCallback

func ActionTests

func ActionTests(opts TestOpts) carapace.Action

ActionTests completes tests

TestActionFiles
TestActionFilesChdir

func ActionTools

func ActionTools() carapace.Action

ActionTools completes tools

asm
buildid

func ActionUnixOperatingSystems

func ActionUnixOperatingSystems() carapace.Action

ActionUnixOperatingSystems completes known operating systems matched by the "unix" build tag

darwin
linux

func ActionVersions

func ActionVersions() carapace.Action

ActionVersions completes go versions

1.18 (2022-03-15)
1.19 (2022-08-02)

func ActionWorkModules

func ActionWorkModules(path string) carapace.Action

ActionWorkModules completes workspace modules

github.com/pelletier/go-toml
github.com/carapace-sh/carapace

func ActionWorkReplacements

func ActionWorkReplacements(path string) carapace.Action

ActionWorkReplacements completes workspace replacements github.com/carapace-sh/carapace-spec (github.com/carapace-sh/carapace-spec@v0.3.0 github.com/spf13/pflag (../carapace-pflag/)

func ActionWorkUses

func ActionWorkUses(path string) carapace.Action

ActionWorkUses completes workspace uses

./carapace
./carapace-bin

Types

type MethodOrFieldOpts

type MethodOrFieldOpts struct {
	Package    string
	Symbol     string
	Unexported bool
}

type ModuleOpts

type ModuleOpts struct {
	Direct         bool
	Indirect       bool
	Replace        bool
	Exclude        bool
	IncludeVersion bool
}

func (ModuleOpts) Default

func (o ModuleOpts) Default() ModuleOpts

type SymbolOpts

type SymbolOpts struct {
	Package    string
	Unexported bool
}

type TestOpts

type TestOpts struct {
	Packages  []string
	Benchmark bool
	Example   bool
	Fuzz      bool
	Test      bool
}

func (TestOpts) Default

func (o TestOpts) Default() TestOpts

Jump to

Keyboard shortcuts

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