mirror of
https://github.com/golang/go
synced 2024-11-07 01:46:15 -07:00
35c670923e
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>
21 lines
255 B
Go
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")
|
|
}
|
|
|