What do do about public methods #452
Replies: 1 comment 3 replies
-
I think we need to ask the core question whether we want to allow it. Given that some people are using it, maybe it's a missed opportunity, but certainly has quickly taken a hit on refactoring :) I think, though, if we do want to be more explicit about making methods public, we should definitely re-evaluate some of the practices - in particular the use of Fatal - I strongly think that (at least to make the methods usable) we should start returning errors. On the flip side, this also makes testing in this code base much easier. |
Beta Was this translation helpful? Give feedback.
-
From #434 (reply in thread):
Regarding the usage of our methods in other golang projects we should have a look at the golang project layouts
See https://github.com/golang-standards/project-layout/tree/master/pkg/_your_public_lib_
At moment we don't reflect that and we are not really intentionally exposing any functions to reuse in other projects.
What are your thoughts regarding that? (we could split that discussion from this thread if needed)
Beta Was this translation helpful? Give feedback.
All reactions