And I did it again... posted from another gmail account by accident, and my 
post is forever in 'approval status', lol.  Basically what Robert here said.

On Thursday, June 4, 2020 at 9:53:56 AM UTC-5, Robert Engels wrote:
>
> You need pointers to strings if you need a nil value to be represented 
> which is often the case in databases. 
>
> > On Jun 4, 2020, at 9:30 AM, Saksham Saxena <ont...@gmail.com 
> <javascript:>> wrote: 
> > 
> > Yep perfectly fine. MongoDB Driver for Go also uses such a wrapper at 
> many places where it takes a string as an argument and returns a pointer to 
> it which is required internally. Not really sure why use a pointer to 
> strings in Go because they're immutable, but I guess to reach their own. 
> > 
> > -- 
> > 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 golan...@googlegroups.com <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/17f2c250-ea5f-41fc-ac1b-0890a69f593b%40googlegroups.com.
>  
>
>
>

-- 
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/b52446c0-8750-4f58-818c-ab985962ca25%40googlegroups.com.

Reply via email to