1
0
mirror of https://github.com/golang/go synced 2024-11-07 01:36:13 -07:00
go/internal/lsp/testdata/format/bad_format.go.in

23 lines
212 B
Go
Raw Normal View History

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