Well, this is really old but I had the same problem and its because you need to export the field on YOUR struct (time.Time doesn't needs to have exported fields like someone else said).
Here's the same code with element *t time.Time* declared as *T time.Time: * https://play.golang.org/p/tXh2LqT8s7S On Wednesday, February 12, 2014 at 2:03:14 AM UTC-4, Go newbie wrote: > > Hi All, > > http://play.golang.org/p/ux3iiizTRx > > //panic: reflect.Value.Interface: cannot return value obtained from > unexported field or method > > Thanks in advance. > > Best Regards > > > -- 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/86bb3a9e-ff60-4c2e-8d49-95ffc4f60adf%40googlegroups.com.