diff --git a/internal/lsp/command/generate/generate.go b/internal/lsp/command/gen/gen.go similarity index 97% rename from internal/lsp/command/generate/generate.go rename to internal/lsp/command/gen/gen.go index d76ff6f856..a4bc486c19 100644 --- a/internal/lsp/command/generate/generate.go +++ b/internal/lsp/command/gen/gen.go @@ -2,9 +2,9 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Package generate is used to generate command bindings from the gopls command +// Package gen is used to generate command bindings from the gopls command // interface. -package generate +package gen import ( "bytes" diff --git a/internal/lsp/command/interface_test.go b/internal/lsp/command/interface_test.go index d58545e011..9ea30b4463 100644 --- a/internal/lsp/command/interface_test.go +++ b/internal/lsp/command/interface_test.go @@ -9,7 +9,7 @@ import ( "io/ioutil" "testing" - "golang.org/x/tools/internal/lsp/command/generate" + "golang.org/x/tools/internal/lsp/command/gen" "golang.org/x/tools/internal/testenv" ) @@ -21,7 +21,7 @@ func TestGenerated(t *testing.T) { t.Fatal(err) } - generated, err := generate.Generate() + generated, err := gen.Generate() if err != nil { t.Fatal(err) }