DHowett / go-plist

A pure Go Apple Property List transcoder
Other
416 stars 97 forks source link

Question: flatten property #71

Open al3xandru opened 2 years ago

al3xandru commented 2 years ago

Is there a way to flatten the structure when unmarshalling?

Example: given

<dict>
<key>URIDictionary</key>
    <dict>
        <key>title</key>
        <string>Inspection and the limits of trust.</string>
    </dict>
    ...
</dict>

would it be possible to read the title key directly without creating a new struct for URIDictionary?

thank you