I am starting playing with golang. I am using QuickTemplate to generate HTML pages. QuickTemplate makes use of the //go:generate directive to generate go source that then are compiled.
As I understand it go generate starts the command before the real go build job is done.
Mymain go file has a //go:generate directive to start qtc (quick template compiler). Sadly it is not starting the qtc command rsulting in a “no go files” errors.
go version is Win10 go version go1.12.3 windows/amd64.
When starting qtc by hand and then go build it works fine.
It does not work better with //go:generate qtc templates
in fact it does not even work with //go:generate echo helloworld
or //go:generate touch helloworld
I am missing something to make go build start the go generate task.