DHowett / go-plist

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

How to handle plists with keys with commas? #70

Open blacktop opened 3 years ago

blacktop commented 3 years ago

For example:

            <key>SE,ChipID</key>
            <string>0x73</string>
            <key>Savage,ChipID</key>
            <string>0x01</string>
            <key>Savage,PatchEpoch</key>
            <string>0x00</string>
DHowett commented 3 years ago

That's an excellent question. I thought that you'd be able to specify keys containing commas by setting tags on struct fields (ala plist:"SE,ChipID"), but it looks like the key parser isn't up to the task.

In the meantime, you may want to unmarshal into a map[string]interface{} and pull the data out directly.