package rpm import "encoding/xml" type RepoMD struct { XMLName xml.Name `xml:"repomd"` Data []RepoMDEntry `xml:"data"` } type RepoMDEntry struct { Type string `xml:"type,attr"` Location RepoMDLocation `xml:"location"` Checksum RepoMDChecksum `xml:"checksum"` Size int64 `xml:"size"` OpenChecksum RepoMDChecksum `xml:"open-checksum"` OpenSize int64 `xml:"open-size"` } type RepoMDLocation struct { Href string `xml:"href,attr"` } type RepoMDChecksum struct { Type string `xml:"type,attr"` Value string `xml:",chardata"` }