1
0
mirror of https://github.com/golang/go synced 2024-11-19 11:04:47 -07:00
go/internal/lsp/testdata/imports/needs_imports.go.golden

27 lines
370 B
Plaintext
Raw Normal View History

-- goimports --
package imports //@import("package")
import (
"fmt"
"log"
)
func goodbye() {
fmt.Printf("HI")
log.Printf("byeeeee")
}
-- goimports-d --
--- imports/needs_imports.go.orig
+++ imports/needs_imports.go
@@ -1,5 +1,10 @@
package imports //@import("package")
+import (
+ "fmt"
+ "log"
+)
+
func goodbye() {
fmt.Printf("HI")
log.Printf("byeeeee")