does the singleton variable for any reason need to be a pointer ?

On Thursday, June 30, 2016 at 4:07:08 PM UTC-7, Nathan Fisher wrote:
>
> I often put all of my wire-up in main which ensures that it's only one 
> instance. Then I create a struct that all of the dependencies hang off of 
> like loggers and clients.
> On Thu, 30 Jun 2016 at 23:30, Val <dele...@gmail.com <javascript:>> wrote:
>
>> Indeed.
>> I find it weird that the authors care more about lazy init (not strictly 
>> required for singletons) than about ensuring properly that multiple 
>> instanciation cannot happen.
>>
>> --
>> 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...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to