Versions in this module Expand all Collapse all v0 v0.14.2 Sep 5, 2025 Changes in this version + var Commands = []Command + func Dispatch(ctx context.Context, params *protocol.ExecuteCommandParams, s Interface) (interface{}, error) + func ID(name string) string + func MarshalArgs(args ...interface{}) ([]json.RawMessage, error) + func NewAddDependencyCommand(title string, a0 DependencyArgs) (protocol.Command, error) + func NewAddImportCommand(title string, a0 AddImportArgs) (protocol.Command, error) + func NewAddTelemetryCountersCommand(title string, a0 AddTelemetryCountersArgs) (protocol.Command, error) + func NewApplyFixCommand(title string, a0 ApplyFixArgs) (protocol.Command, error) + func NewChangeSignatureCommand(title string, a0 ChangeSignatureArgs) (protocol.Command, error) + func NewCheckUpgradesCommand(title string, a0 CheckUpgradesArgs) (protocol.Command, error) + func NewDiagnoseFilesCommand(title string, a0 DiagnoseFilesArgs) (protocol.Command, error) + func NewEditGoDirectiveCommand(title string, a0 EditGoDirectiveArgs) (protocol.Command, error) + func NewGCDetailsCommand(title string, a0 protocol.DocumentURI) (protocol.Command, error) + func NewGenerateCommand(title string, a0 GenerateArgs) (protocol.Command, error) + func NewGoGetPackageCommand(title string, a0 GoGetPackageArgs) (protocol.Command, error) + func NewListImportsCommand(title string, a0 URIArg) (protocol.Command, error) + func NewListKnownPackagesCommand(title string, a0 URIArg) (protocol.Command, error) + func NewMaybePromptForTelemetryCommand(title string) (protocol.Command, error) + func NewMemStatsCommand(title string) (protocol.Command, error) + func NewRegenerateCgoCommand(title string, a0 URIArg) (protocol.Command, error) + func NewRemoveDependencyCommand(title string, a0 RemoveDependencyArgs) (protocol.Command, error) + func NewResetGoModDiagnosticsCommand(title string, a0 ResetGoModDiagnosticsArgs) (protocol.Command, error) + func NewRunGoWorkCommandCommand(title string, a0 RunGoWorkArgs) (protocol.Command, error) + func NewRunTestsCommand(title string, a0 RunTestsArgs) (protocol.Command, error) + func NewStartDebuggingCommand(title string, a0 DebuggingArgs) (protocol.Command, error) + func NewStartProfileCommand(title string, a0 StartProfileArgs) (protocol.Command, error) + func NewStopProfileCommand(title string, a0 StopProfileArgs) (protocol.Command, error) + func NewTestCommand(title string, a0 protocol.DocumentURI, a1 []string, a2 []string) (protocol.Command, error) + func NewTidyCommand(title string, a0 URIArgs) (protocol.Command, error) + func NewToggleGCDetailsCommand(title string, a0 URIArg) (protocol.Command, error) + func NewUpdateGoSumCommand(title string, a0 URIArgs) (protocol.Command, error) + func NewUpgradeDependencyCommand(title string, a0 DependencyArgs) (protocol.Command, error) + func NewVendorCommand(title string, a0 URIArg) (protocol.Command, error) + func NewViewsCommand(title string) (protocol.Command, error) + func NewWorkspaceStatsCommand(title string) (protocol.Command, error) + func UnmarshalArgs(jsonArgs []json.RawMessage, args ...interface{}) error + type AddImportArgs struct + ImportPath string + URI protocol.DocumentURI + type AddTelemetryCountersArgs struct + Names []string + Values []int64 + type ApplyFixArgs struct + Fix string + Range protocol.Range + ResolveEdits bool + URI protocol.DocumentURI + type CallStack []StackEntry + type ChangeSignatureArgs struct + RemoveParameter protocol.Location + ResolveEdits bool + type CheckUpgradesArgs struct + Modules []string + URI protocol.DocumentURI + type Command string + const AddDependency + const AddImport + const AddTelemetryCounters + const ApplyFix + const ChangeSignature + const CheckUpgrades + const DiagnoseFiles + const EditGoDirective + const GCDetails + const Generate + const GoGetPackage + const ListImports + const ListKnownPackages + const MaybePromptForTelemetry + const MemStats + const RegenerateCgo + const RemoveDependency + const ResetGoModDiagnostics + const RunGoWorkCommand + const RunTests + const StartDebugging + const StartProfile + const StopProfile + const Test + const Tidy + const ToggleGCDetails + const UpdateGoSum + const UpgradeDependency + const Vendor + const Views + const WorkspaceStats + func (c Command) ID() string + type DebuggingArgs struct + Addr string + type DebuggingResult struct + URLs []string + type DependencyArgs struct + AddRequire bool + GoCmdArgs []string + URI protocol.DocumentURI + type DiagnoseFilesArgs struct + Files []protocol.DocumentURI + type EditGoDirectiveArgs struct + URI protocol.DocumentURI + Version string + type FileImport struct + Name string + Path string + type FileStats struct + Errs int + Largest int + Total int + type GenerateArgs struct + Dir protocol.DocumentURI + Recursive bool + type GoGetPackageArgs struct + AddRequire bool + Pkg string + URI protocol.DocumentURI + type Interface interface + AddDependency func(context.Context, DependencyArgs) error + AddImport func(context.Context, AddImportArgs) error + AddTelemetryCounters func(context.Context, AddTelemetryCountersArgs) error + ApplyFix func(context.Context, ApplyFixArgs) (*protocol.WorkspaceEdit, error) + ChangeSignature func(context.Context, ChangeSignatureArgs) (*protocol.WorkspaceEdit, error) + CheckUpgrades func(context.Context, CheckUpgradesArgs) error + DiagnoseFiles func(context.Context, DiagnoseFilesArgs) error + EditGoDirective func(context.Context, EditGoDirectiveArgs) error + GCDetails func(context.Context, protocol.DocumentURI) error + Generate func(context.Context, GenerateArgs) error + GoGetPackage func(context.Context, GoGetPackageArgs) error + ListImports func(context.Context, URIArg) (ListImportsResult, error) + ListKnownPackages func(context.Context, URIArg) (ListKnownPackagesResult, error) + MaybePromptForTelemetry func(context.Context) error + MemStats func(context.Context) (MemStatsResult, error) + RegenerateCgo func(context.Context, URIArg) error + RemoveDependency func(context.Context, RemoveDependencyArgs) error + ResetGoModDiagnostics func(context.Context, ResetGoModDiagnosticsArgs) error + RunGoWorkCommand func(context.Context, RunGoWorkArgs) error + RunTests func(context.Context, RunTestsArgs) error + StartDebugging func(context.Context, DebuggingArgs) (DebuggingResult, error) + StartProfile func(context.Context, StartProfileArgs) (StartProfileResult, error) + StopProfile func(context.Context, StopProfileArgs) (StopProfileResult, error) + Test func(context.Context, protocol.DocumentURI, []string, []string) error + Tidy func(context.Context, URIArgs) error + ToggleGCDetails func(context.Context, URIArg) error + UpdateGoSum func(context.Context, URIArgs) error + UpgradeDependency func(context.Context, DependencyArgs) error + Vendor func(context.Context, URIArg) error + Views func(context.Context) ([]View, error) + WorkspaceStats func(context.Context) (WorkspaceStatsResult, error) + type ListImportsResult struct + Imports []FileImport + PackageImports []PackageImport + type ListKnownPackagesResult struct + Packages []string + type MemStatsResult struct + HeapAlloc uint64 + HeapInUse uint64 + TotalAlloc uint64 + type PackageImport struct + Path string + type PackageStats struct + CompiledGoFiles int + LargestPackage int + Modules int + Packages int + type RemoveDependencyArgs struct + ModulePath string + OnlyDiagnostic bool + URI protocol.DocumentURI + type ResetGoModDiagnosticsArgs struct + DiagnosticSource string + type RunGoWorkArgs struct + Args []string + InitFirst bool + ViewID string + type RunTestsArgs struct + Benchmarks []string + Tests []string + URI protocol.DocumentURI + type RunVulncheckResult struct + Token protocol.ProgressToken + type StackEntry struct + Name string + Pos protocol.Position + URI protocol.DocumentURI + type StartProfileArgs struct + type StartProfileResult struct + type StopProfileArgs struct + type StopProfileResult struct + File string + type URIArg struct + URI protocol.DocumentURI + type URIArgs struct + URIs []protocol.DocumentURI + type View struct + EnvOverlay []string + Folder protocol.DocumentURI + Root protocol.DocumentURI + Type string + type ViewStats struct + AllPackages PackageStats + Diagnostics int + GoCommandVersion string + WorkspacePackages PackageStats + type VulncheckArgs struct + Pattern string + URI protocol.DocumentURI + type WorkspaceStatsResult struct + Files FileStats + Views []ViewStats