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

23 lines
219 B
Go
Raw Normal View History

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