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

22 lines
243 B
Plaintext
Raw Normal View History

-- gofmt --
package format //@format("package")
import (
"fmt"
"log"
"runtime"
)
func hello() {
var x int //@diag("x", "compiler", "x declared but not used", "error")
}
func hi() {
runtime.GOROOT()
fmt.Printf("")
log.Printf("")
}