I know this. I am asking about the functionality of the mgo driver while
calling SetSafe(nil) & SetSafe(&Safe{})? How mgo will behave in both the
cases while doing a write to Mongo?

On Fri, Aug 5, 2016 at 11:09 AM, Kiki Sugiaman <ksugia...@gmail.com> wrote:

> &Safe{} gives you a pointer to a new instance of Safe with zero value for
> all its fields.
>
> https://tour.golang.org/basics/12
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "golang-nuts" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/to
> pic/golang-nuts/Mdc4ntGIvwE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> golang-nuts+unsubscr...@googlegroups.com.
> 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