On Tue, Apr 4, 2023 at 12:05 PM fliter <imc...@gmail.com> wrote:
>
> There are many private methods with identical code in several different 
> packages, which is clearly not elegant; But adding a public method that can 
> be accessed by other packages (a proposal needs to be made) does not seem 
> very necessary. Is there a better solution?

Since you mention a proposal, I assume that you are talking about the
standard library.  It's possible to coalesce identical functions into
an internal package.  An internal package is not publicly visible and
as such does not require a proposal.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcVJzR14mWnY8K1Yk13ohX9gnaJ%2BMJOnN3mg5bv0H7WpQA%40mail.gmail.com.

Reply via email to