Paste #121296

   
pasted on 16.05.2019 12:39
  • Edit to this paste
  • Print
  • Raw
  • The following pastes replied to this paste:  # 137279
  • Show paste tree
  • Compare with paste
    #  
  • Toggle line numbers
  • Syntax highlighting  
Text paste
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
type YmlCatalog struct {
	XMLName xml.Name `xml:"yml_catalog"`
	Text    string   `xml:",chardata"`
	Date    string   `xml:"date,attr"`
	Shop    struct {
		Text       string `xml:",chardata"`
		Name       string `xml:"name"`
		Company    string `xml:"company"`
		URL        string `xml:"url"`
		Currencies struct {
			Text     string `xml:",chardata"`
			Currency struct {
				Text string `xml:",chardata"`
				ID   string `xml:"id,attr"`
				Rate string `xml:"rate,attr"`
				Plus string `xml:"plus,attr"`
			} `xml:"currency"`
		} `xml:"currencies"`
		Categories struct {
			Text     string `xml:",chardata"`
			Category []struct {
				Text     string `xml:",chardata"`
				ID       string `xml:"id,attr"`
				URL      string `xml:"url,attr"`
				ParentId string `xml:"parentId,attr"`
			} `xml:"category"`
		} `xml:"categories"`
		Offers struct {
			Text  string `xml:",chardata"`
			Offer struct {
				Text        string   `xml:",chardata"`
				ID          string   `xml:"id,attr"`
				Available   string   `xml:"available,attr"`
				URL         string   `xml:"url"`
				Price       string   `xml:"price"`
				CategoryId  string   `xml:"categoryId"`
				Name        string   `xml:"name"`
				Vendor      string   `xml:"vendor"`
				Description string   `xml:"description"`
				Picture     []string `xml:"picture"`
				CurrencyId  string   `xml:"currencyId"`
				Store       string   `xml:"store"`
				Delivery    string   `xml:"delivery"`
				Pickup      string   `xml:"pickup"`
				VendorCode  string   `xml:"vendorCode"`
				Param       []struct {
					Text string `xml:",chardata"`
					Name string `xml:"name,attr"`
				} `xml:"param"`
			} `xml:"offer"`
		} `xml:"offers"`
	} `xml:"shop"`
} 
Add Comment
Author