1
0
mirror of https://github.com/golang/go synced 2024-11-07 01:46:15 -07:00
go/internal/lsp/testdata/format/bad_format.gofmt-d.golden.go
Ian Cottrell 35c670923e internal/lsp: clean up formatting header handling
This is mostly to set things up to use golden files the same way for other commands.

Change-Id: I7fcc7165706763e655b0e46f0790b367fe5d3d59
Reviewed-on: https://go-review.googlesource.com/c/tools/+/174018
Run-TryBot: Ian Cottrell <iancottrell@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-04-29 18:49:09 +00:00

21 lines
255 B
Go

--- format/bad_format.go.orig
+++ format/bad_format.go
@@ -1,16 +1,13 @@
package format //@format("package")
import (
- "runtime"
"fmt"
"log"
+ "runtime"
)
func hello() {
-
-
-
var x int //@diag("x", "LSP", "x declared but not used")
}