[go-nuts] mockgen tool not calling mocked function

2022-10-14 Thread Ron Khera
I am using Go 1.19 on a windows machine with 8 cores, operating system is Windows 10 Pro. I used the mockgen tool to generate the mock.When I debug my test I see the mocked method is recorded when I execute the EXPECT() function.The mocked function is called, but test fails with 'missing call

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

2022-10-14 Thread 'Dan Kortschak' via golang-nuts
On Fri, 2022-10-14 at 00:17 -0700, esimov wrote: > . Now, that's not the case when you are running a package using the > following command: "go run github.com/user/package@latest" for > example Can you give an example of a real package where this doesn't work? -- You received this message becaus

[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