I'm not sure there is a way to do this. The reflect package by design
does not let you do anything to a struct with unexported fields that
might permit you to change the fields.
Ian
Moises Soto
unread,
Aug 20, 2019, 11:39:10 PM8/20/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
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).