all: gofmt format

Change-Id: I8419bdaab5164388de846ccd942af1914ef944b7
Reviewed-on: https://go-review.googlesource.com/c/tools/+/520075
gopls-CI: kokoro <noreply+kokoro@google.com>
Run-TryBot: shuang cui <imcusg@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
diff --git a/gopls/internal/lsp/command/gen/gen.go b/gopls/internal/lsp/command/gen/gen.go
index 2942869..b3f89c8 100644
--- a/gopls/internal/lsp/command/gen/gen.go
+++ b/gopls/internal/lsp/command/gen/gen.go
@@ -12,8 +12,8 @@
 	"go/types"
 	"text/template"
 
-	"golang.org/x/tools/internal/imports"
 	"golang.org/x/tools/gopls/internal/lsp/command/commandmeta"
+	"golang.org/x/tools/internal/imports"
 )
 
 const src = `// Copyright 2021 The Go Authors. All rights reserved.
diff --git a/gopls/internal/lsp/lsprpc/goenv.go b/gopls/internal/lsp/lsprpc/goenv.go
index c316ea0..b771784 100644
--- a/gopls/internal/lsp/lsprpc/goenv.go
+++ b/gopls/internal/lsp/lsprpc/goenv.go
@@ -10,10 +10,10 @@
 	"fmt"
 	"os"
 
+	"golang.org/x/tools/gopls/internal/lsp/protocol"
 	"golang.org/x/tools/internal/event"
 	"golang.org/x/tools/internal/gocommand"
 	jsonrpc2_v2 "golang.org/x/tools/internal/jsonrpc2_v2"
-	"golang.org/x/tools/gopls/internal/lsp/protocol"
 )
 
 func GoEnvMiddleware() (Middleware, error) {
diff --git a/internal/diff/lcs/labels.go b/internal/diff/lcs/labels.go
index 0689f1e..504913d 100644
--- a/internal/diff/lcs/labels.go
+++ b/internal/diff/lcs/labels.go
@@ -8,7 +8,7 @@
 	"fmt"
 )
 
-//  For each D, vec[D] has length D+1,
+// For each D, vec[D] has length D+1,
 // and the label for (D, k) is stored in vec[D][(D+k)/2].
 type label struct {
 	vec [][]int
diff --git a/internal/typeparams/coretype.go b/internal/typeparams/coretype.go
index 993135e..7124820 100644
--- a/internal/typeparams/coretype.go
+++ b/internal/typeparams/coretype.go
@@ -81,13 +81,13 @@
 // restrictions may be arbitrarily complex. For example, consider the
 // following:
 //
-//  type A interface{ ~string|~[]byte }
+//	type A interface{ ~string|~[]byte }
 //
-//  type B interface{ int|string }
+//	type B interface{ int|string }
 //
-//  type C interface { ~string|~int }
+//	type C interface { ~string|~int }
 //
-//  type T[P interface{ A|B; C }] int
+//	type T[P interface{ A|B; C }] int
 //
 // In this example, the structural type restriction of P is ~string|int: A|B
 // expands to ~string|~[]byte|int|string, which reduces to ~string|~[]byte|int,