Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

go:generate is done at dev time, not at build time.


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




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: