Thanks

在2023年4月5日星期三 UTC+8 03:38:21<Ian Lance Taylor> 写道:

> 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/4d17d2fa-694f-491b-89ed-28cb9bdd2645n%40googlegroups.com.

Reply via email to