Text file src/cmd/go/testdata/script/embed_fmt.txt
1 # go fmt ignores file not found 2 go fmt xnofmt.go 3 cmp xnofmt.go xfmt.ref 4 ! go build xnofmt.go 5 stderr 'xnofmt.go:5:12: pattern missing.txt: no matching files found' 6 7 -- xnofmt.go -- 8 package p 9 10 import "embed" 11 12 //go:embed missing.txt 13 var X embed.FS 14 -- xfmt.ref -- 15 package p 16 17 import "embed" 18 19 //go:embed missing.txt 20 var X embed.FS 21 -- go.mod -- 22 module m 23