1
Ben ben unmarshal istiyorum aşağıdaki XML:unmarshalling XML
<packaging>
<depth measurementUnitCode="MMT">1200</depth>
<height measurementUnitCode="MMT">1320</height>
</packaging>
Ben şu iki yapı içine unmarshal istiyorum:
type Packaging struct {
Depth Depth `xml:"depth"`
Height Height `xml:"height"`
}
type Measurement struct {
UnitOfMeasure `xml:"measurementUnitCode,attr"`
Value float64 `xml:"???????"`
}
UnitOfMeasure
iyidir, ama yapamıyorum gerçek Value
kümesinin nasıl alınacağını gösterir. Bunu nasıl yaparım?