blob: d58ef74fc3ec43ffed7c66dc46ad50cf279d0845 [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 _() {
_ = os.Stdin
_ = io.EOF
}
-- @fix_import/fix_import.go --
@@ -4 +4 @@
+ _ "embed"