You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like a feature for a project that I'm working on to be able to do something like gocty.FromCtyValue, but for a struct with field tags of a kind other than cty:"". Is this within the scope of this project / compatible with design goals?
I've taken a stab at it here - that branch updates func structTagIndices to take a tag string instead of always using cty, and adds a new function func FromCtyValueTagged that takes a new parameter tag string
My project uses this function to decode values into structs that are provided by a plugin and everything seems to work ( +cty tests pass )
The text was updated successfully, but these errors were encountered:
I'd like a feature for a project that I'm working on to be able to do something like
gocty.FromCtyValue
, but for a struct with field tags of a kind other thancty:""
. Is this within the scope of this project / compatible with design goals?I've taken a stab at it here - that branch updates
func structTagIndices
to take atag string
instead of always usingcty
, and adds a new functionfunc FromCtyValueTagged
that takes a new parametertag string
My project uses this function to decode values into structs that are provided by a plugin and everything seems to work ( +cty tests pass )
The text was updated successfully, but these errors were encountered: