Subprogram inside a library

I want to contribute a tool, which will be used via //go:generate inside a library to generate some code. This tool is self written and specific to the library, it can’t be used for anything else.

My question is: Where should I store the code to this tool? Inside the library? If so where? It’s not intended to be used by library users during runtime and I don’t like the fact the code is sitting there, possibly executable.

Or should it be put in a seperate repository? Any suggestions? Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.