Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 1.46 KB | None | 0 0
  1.  
  2. type Rss struct {
  3.     XMLName xml.Name    `xml:"rss"`
  4.     Version string        `xml:"version,attr"`
  5.     // Required
  6.     Title       string        `xml:"channel>title"`
  7.     Link        string        `xml:"channel>link"`
  8.     Description string        `xml:"channel>description"`
  9.     // Optional
  10.     PubDate  string        `xml:"channel>pubDate"`
  11.     ItemList []Item        `xml:"channel>item"`
  12. }
  13.  
  14. type AppLink struct {
  15.     Property string `xml:"property,attr"`
  16.     Content  string `xml:"content,attr"`
  17. }
  18.  
  19. type Item struct {
  20.     Id                    string        `xml:"id"`
  21.     Title                 string        `xml:"title"`
  22.     Description           template.HTML    `xml:"description"`
  23.     Link                  string        `xml:"link"`
  24.     ImageLink             string        `xml:"image_link"`
  25.     AppLinks              []AppLink `xml:"applink"`
  26.     Condition             string `xml:"condition"`
  27.     Availability          string `xml:"availability"`
  28.     Price                 string `xml:"price"`
  29.     GoogleProductCategory string `xml:"google_product_category"`
  30.     Brand                 string `xml:"brand"`
  31.     Mpn                   string `xml:"mpn"`
  32.     ProductType           string `xml:"product_type"`
  33.     AdditionalImageLink   string `xml:"additional_image_link"`
  34.     Gender                string `xml:"gender"`
  35.     AgeGroup              string `xml:"age_group"`
  36.     Material              string `xml:"material"`
  37.     CustomLabel0          string `xml:"custom_label_0"`
  38.     CustomLabel1          string `xml:"custom_label_1"`
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement