From d5b83329be067f5a06d40ae4b66e9369ff921466 Mon Sep 17 00:00:00 2001 From: Rebecca Stambler Date: Wed, 17 Feb 2021 15:31:35 -0500 Subject: [PATCH] internal/lsp/command: rename package generate to gen Change-Id: If9c39b7c1e26fb0064135d5cc2a65af913f7e573 Reviewed-on: https://go-review.googlesource.com/c/tools/+/293269 Trust: Rebecca Stambler Run-TryBot: Rebecca Stambler gopls-CI: kokoro TryBot-Result: Go Bot Reviewed-by: Robert Findley --- internal/lsp/command/{generate/generate.go => gen/gen.go} | 4 ++-- internal/lsp/command/interface_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename internal/lsp/command/{generate/generate.go => gen/gen.go} (97%) 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) }