aboutsummaryrefslogtreecommitdiff
path: root/gopls/internal/lsp/testdata/format/bad_format.go.golden
blob: f0c24d6356ebc33ab974a6cbcbb100eab869c30e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-- 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("")
}