On Sunday, 20 November 2016 05:09:41 UTC+11, Tamás Gulácsi wrote:
>
> Dear Gophers!
>
> I'm  trying to make gopkg.in/rana/ora.v3 race-free.
>
> It has a deep hierarchy: Rset->Stmt->Ses->Srv->Env. For some config 
> (logger, default column types...) rset has its own copy, but maybe that's 
> nil, so it has to go to the default, which may be in any of its ancestors...
> Just to make it a real mess, some structs are pointers, some not.
>
> What shall I do? Make everything a pointer, lock the struct (rset), and 
> then get the value (RsetCfg)?
> Or make everything non-pointer?
>

Make your data structure immutable.
 

>
> Thanks in advance!
>

-- 
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