go-plist icon indicating copy to clipboard operation
go-plist copied to clipboard

How to handle plists with keys with commas?

Open blacktop opened this issue 3 years ago • 1 comments

For example:

			<key>SE,ChipID</key>
			<string>0x73</string>
			<key>Savage,ChipID</key>
			<string>0x01</string>
			<key>Savage,PatchEpoch</key>
			<string>0x00</string>
```			

blacktop avatar Nov 02 '21 00:11 blacktop

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.

DHowett avatar Nov 02 '21 15:11 DHowett