blob: f0915476f7ff24bfd9b5e0601887dab3e120a933 [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 //@quickfix("//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"