Versions in this module Expand all Collapse all v0 v0.100.0 May 1, 2021 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 NewApplyFixCommand(title string, a0 ApplyFixArgs) (protocol.Command, error) + func NewCheckUpgradesCommand(title string, a0 CheckUpgradesArgs) (protocol.Command, error) + func NewGCDetailsCommand(title string, a0 protocol.DocumentURI) (protocol.Command, error) + func NewGenerateCommand(title string, a0 GenerateArgs) (protocol.Command, error) + func NewGenerateGoplsModCommand(title string, a0 URIArg) (protocol.Command, error) + func NewGoGetPackageCommand(title string, a0 GoGetPackageArgs) (protocol.Command, error) + func NewListKnownPackagesCommand(title string, a0 URIArg) (protocol.Command, error) + func NewRegenerateCgoCommand(title string, a0 URIArg) (protocol.Command, error) + func NewRemoveDependencyCommand(title string, a0 RemoveDependencyArgs) (protocol.Command, error) + func NewRunTestsCommand(title string, a0 RunTestsArgs) (protocol.Command, error) + func NewStartDebuggingCommand(title string, a0 DebuggingArgs) (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 NewWorkspaceMetadataCommand(title string) (protocol.Command, error) + func UnmarshalArgs(jsonArgs []json.RawMessage, args ...interface{}) error + type AddImportArgs struct + ImportPath string + URI protocol.DocumentURI + type AddImportResult struct + Edits []protocol.TextDocumentEdit + type ApplyFixArgs struct + Fix string + Range protocol.Range + URI protocol.DocumentURI + type CheckUpgradesArgs struct + Modules []string + URI protocol.DocumentURI + type Command string + const AddDependency + const AddImport + const ApplyFix + const CheckUpgrades + const GCDetails + const Generate + const GenerateGoplsMod + const GoGetPackage + const ListKnownPackages + const RegenerateCgo + const RemoveDependency + const RunTests + const StartDebugging + const Test + const Tidy + const ToggleGCDetails + const UpdateGoSum + const UpgradeDependency + const Vendor + const WorkspaceMetadata + 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 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) (AddImportResult, error) + ApplyFix func(context.Context, ApplyFixArgs) error + CheckUpgrades func(context.Context, CheckUpgradesArgs) error + GCDetails func(context.Context, protocol.DocumentURI) error + Generate func(context.Context, GenerateArgs) error + GenerateGoplsMod func(context.Context, URIArg) error + GoGetPackage func(context.Context, GoGetPackageArgs) error + ListKnownPackages func(context.Context, URIArg) (ListKnownPackagesResult, error) + RegenerateCgo func(context.Context, URIArg) error + RemoveDependency func(context.Context, RemoveDependencyArgs) error + RunTests func(context.Context, RunTestsArgs) error + StartDebugging func(context.Context, DebuggingArgs) (DebuggingResult, 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 + WorkspaceMetadata func(context.Context) (WorkspaceMetadataResult, error) + type ListKnownPackagesResult struct + Packages []string + type RemoveDependencyArgs struct + ModulePath string + OnlyDiagnostic bool + URI protocol.DocumentURI + type RunTestsArgs struct + Benchmarks []string + Tests []string + URI protocol.DocumentURI + type URIArg struct + URI protocol.DocumentURI + type URIArgs struct + URIs []protocol.DocumentURI + type Workspace struct + ModuleDir string + Name string + type WorkspaceMetadataArgs struct + type WorkspaceMetadataResult struct + Workspaces []Workspace