mirror of
https://github.com/golang/go
synced 2024-11-06 19:46:20 -07:00
030b2cf115
Change-Id: Ifd9dd5684c8467442cb551a72b4d35ae6faed599 Reviewed-on: https://go-review.googlesource.com/c/tools/+/197158 Run-TryBot: Ian Cottrell <iancottrell@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
22 lines
229 B
Plaintext
22 lines
229 B
Plaintext
-- gofmt --
|
|
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("")
|
|
}
|
|
|