go-plist
go-plist copied to clipboard
How to handle plists with keys with commas?
For example:
<key>SE,ChipID</key>
<string>0x73</string>
<key>Savage,ChipID</key>
<string>0x01</string>
<key>Savage,PatchEpoch</key>
<string>0x00</string>
```
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.