Sign in
go
/
tools
/
51abc5bd865f4a8a94772f911be1a286a32202c3
/
.
/
gopls
/
internal
/
lsp
/
testdata
/
format
/
bad_format.go.golden
blob: f0c24d6356ebc33ab974a6cbcbb100eab869c30e [
file
] [
log
] [
blame
]
--
gofmt
--
package
format
//@format("package")
import
(
"fmt"
"log"
"runtime"
)
func hello
()
{
var
x
int
//@diag("x", "compiler", "x declared (and|but) not used", "error")
}
func hi
()
{
runtime
.
GOROOT
()
fmt
.
Printf
(
""
)
log
.
Printf
(
""
)
}