-
Notifications
You must be signed in to change notification settings - Fork 14
Code Organization #5
Comments
@prashantv @peter-edge Thoughts? |
This moves all executables to cmd/ and library code to the top-level. Resolves #5
Created #6 while we discuss this |
Do we never want anyone outside of this repo to rely on the library code? If so, perhaps we should just put all library code in |
My understanding of this repository was that it was strictly for tooling. As The options I think we have are,
|
Do we have any usecases for consuming the library code outside of this package? If not, I'd vote for the third option. If we find that the library is more useful, we should move it to a separate repo in uber-go. |
@prashantv, okay I can buy that. Plus that'll lead to zero breakage to existing users since the executable paths won't change. @peter-edge? |
Currently we put executables under top-level directories and re-usable
library code under lib/. We should perhaps put library code at the top level
and commands under a cmd/ directory.
So we would have,
This is similar to how
golang.org/x/tools
is organized.Also we'll want to make it clear that there are no API stability guarantees to
the library code. It's for use by other commands in this repo only.
The text was updated successfully, but these errors were encountered: