Is there a reason to have the fields be *string rather than just string? On Tue, 2017-08-22 at 15:48 -0700, Eric Brown wrote: > Let's say I have a struct... > > type Contact struct { > Id int `json:"id"` > FirstName *string `json:"firstname"` > LastName *string `json:"lastname"` > Email *string `json:"email"` > Phone *string `json:"phone"` > Ext *string `json:"ext"` > } >
-- 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.