blob: 821eb10ef20f32d59cf10dc4f6e9dd771a3c2df0 [file] [log] [blame]
This test checks the quick fix to add a missing "embed" import.
-- embed.txt --
text
-- fix_import.go --
package embeddirective
import (
"io"
"os"
)
//go:embed embed.txt //@suggestedfix("//go:embed", re`must import "embed"`, fix_import)
var t string
func unused() {
_ = os.Stdin
_ = io.EOF
}
-- @fix_import/fix_import.go --
@@ -4 +4 @@
+ _ "embed"