You use https://godoc.org/reflect#Value.Field https://godoc.org/reflect#Zero https://godoc.org/reflect#Value.Interface and read the docs :)
Don't take this the wrong way, but reflect isn't for the gentle-spirited, it's ugly, errorprone and hard. You probably don't want to use it and if you need to use it, you should first really understand how (and have a good understanding of how go works). Otherwise you are going to write broken, unmaintainable and ugly programs. So there needs to be some of the heavy-lifting on your part, it can't all come from mailing lists :) On Wed, Aug 3, 2016 at 8:34 AM, Rayland <guianul...@gmail.com> wrote: > Hi all, > > How can I use reflect to detect all fields that have the zero value, on a > pointer object? > > > Thank you > > -- > 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. > -- 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.