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'm a bit confused about how to use/implement UnmarshalPlist. What am I meant to pass to the function func (i interface{}) error? When I pass the struct, I get an infinite loop.
My use case is I'm trying to unmarshal an iOS Workflow plist, but I'm stuck on the key WFTextActionText that can either be <string> or <dict>. I thought I could implement UnmarshalPlist on the struct that holds WFTextActionText to determine whether to set a WFTextActionTextString or WFTextActionTextDict value.
I'm a bit confused about how to use/implement UnmarshalPlist. What am I meant to pass to the function
func (i interface{}) error
? When I pass the struct, I get an infinite loop.My use case is I'm trying to unmarshal an iOS Workflow plist, but I'm stuck on the key
WFTextActionText
that can either be<string>
or<dict>
. I thought I could implementUnmarshalPlist
on the struct that holdsWFTextActionText
to determine whether to set aWFTextActionTextString
orWFTextActionTextDict
value.Thanks in advanced =)
Example plist and Go file: https://gist.github.com/henrahmagix/7b8909a02dcd326aa29dcd46be1dd8c6
Example string:
Example dict:
The text was updated successfully, but these errors were encountered: