Sign in
go
/
tools
/
0cfddb3c3da72ca6d8baa1b01918eb8f1f9acf38
/
.
/
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
(
""
)
}