Hacker News new | ask | show | jobs
by xena 37 days ago
go:generate is done at dev time, not at build time.
1 comments

Actually bindings are usually generated like that, at build time (though with a build cache that nobody knows how it corrupts all the time).

Examples that come to mind: webview/webview, webkit, cilium/ebpf and most other CGo projects that I have seen.

you only run them for your own project, not the generate directives of your dependencies though