I know that //go:embed directive reads the content of the embedable file at 
compile time. Now if that's the case I wondering if you are running a Go 
executable with "go run" at the same time while you are downloading like go 
run github.com/user/projectname@latest (which should embed an external 
file) why the file is not embedded?

Normally if the file you want to embed does not exits, the compiler will 
throw you an error telling that "no matching files found". Why is not the 
case when you are running without a prior download? 

I'm asking this because if I'm running the application normally the file is 
getting embedded correctly, but if I'm trying to build it on-the-fly with 
go run this is not happening? 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/a6042517-5e2d-429d-acf3-7cfdfb653036n%40googlegroups.com.

Reply via email to