mirror of
https://github.com/golang/go
synced 2024-11-19 07:54:43 -07:00
2acd0f4c51
Also convert the format tests to use it. This means that the build bots no longer need to run gofmt. Change-Id: I5cb9d239183b17d81fdb00b38e9099d224c07e6a Reviewed-on: https://go-review.googlesource.com/c/tools/+/172973 Reviewed-by: Rebecca Stambler <rstambler@golang.org>
20 lines
216 B
Go
20 lines
216 B
Go
package format //@format("package")
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
"runtime"
|
|
)
|
|
|
|
func hello() {
|
|
|
|
var x int //@diag("x", "LSP", "x declared but not used")
|
|
}
|
|
|
|
func hi() {
|
|
runtime.GOROOT()
|
|
fmt.Printf("")
|
|
|
|
log.Printf("")
|
|
}
|