这个问题在这里已经有了答案:Howdoesasimplexmlelementunmarshaltoagolangstruct?(1个回答)关闭6年前。我有以下要解码的XML:12001320我希望它解码为以下结构:typePackagingstruct{DepthDepth`xml:"depth"`HeightHeight`xml:"height"`}typeMeasurementstruct{UnitOfMeasure`xml:"measurementUnitCode,attr"`Valuefloat64`xml:"???????"`}UnitOfMeasure很好,但我不知道如何获