Re: [go-nuts] Re: go:embed question

2022-10-15 Thread esimov
go run github.com/esimov/caire/cmd/caire@latest. I'm wondering is this somehow related to the fact, that the file which should be embedded is located two levels up to the root tree? The embedable file is located in the data folder, but the file effectively is not embedded in cmd/caire/ma

[go-nuts] Re: go:embed question

2022-10-14 Thread esimov
Let me rephrase it: so normally when you are embedding an external file with the go://embed directive, when you are running the "go run" command it will embed it at compile time. Now, that's not the case when you are running a package using the following command: "go run github.com/user/package

[go-nuts] go:embed question

2022-10-12 Thread Endre Simo (esimov)
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