blob: efbf7620c74dc2b72d1dffed991e57ed9832612c [file] [log] [blame]
-- 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")
}