1
0
mirror of https://github.com/golang/go synced 2024-11-19 13:24:42 -07:00
go/internal/lsp/testdata/format/bad_format.go.golden

44 lines
499 B
Plaintext
Raw Normal View History

-- gofmt --
package format //@format("package")
import (
"fmt"
"log"
"runtime"
)
func hello() {
var x int //@diag("x", "LSP", "x declared but not used")
}
func hi() {
runtime.GOROOT()
fmt.Printf("")
log.Printf("")
}
-- gofmt-d --
--- 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")
}