fatih / structs

Utilities for Go structs

Home Page:http://godoc.org/github.com/fatih/structs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Addr method for Field

titpetric opened this issue · comments

In order to allow for modification of nested structures, we must have a way to retrieve a pointer for an individual field inside the first struct, so we may call structs.New on it later and enable modification of individual fields.

I'm asuming we need to call reflect.Addr on the unexported reflect.Value.

https://golang.org/pkg/reflect/#Value.Addr

Hi,

Unfortunately, I'm archiving this project and will no longer maintaining it. For more information, please read my blog post: Taking an indefinite sabbatical from my projects.

Thanks for the feedback and contribution.