Compare Pastes

Differences between the pastes #121296 (16.05.2019 12:39) and #137279 (01.07.2020 07:22).
1
type YmlCatalog struct {
2
	XMLName xml.Name `xml:"yml_catalog"`
3
	Text    string   `xml:",chardata"`
4
	Date    string   `xml:"date,attr"`
5
	Shop    struct {
6
		Text       string `xml:",chardata"`
7
		Name       string `xml:"name"`
8
		Company    string `xml:"company"`
9
		URL        string `xml:"url"`
10
		Currencies struct {
11
			Text     string `xml:",chardata"`
12
			Currency struct {
13
				Text string `xml:",chardata"`
14
				ID   string `xml:"id,attr"`
15
				Rate string `xml:"rate,attr"`
16
				Plus string `xml:"plus,attr"`
17
			} `xml:"currency"`
18
		} `xml:"currencies"`
19
		Categories struct {
20
			Text     string `xml:",chardata"`
21
			Category []struct {
22
				Text     string `xml:",chardata"`
23
				ID       string `xml:"id,attr"`
24
				URL      string `xml:"url,attr"`
25
				ParentId string `xml:"parentId,attr"`
26
			} `xml:"category"`
27
		} `xml:"categories"`
28
		Offers struct {
29
			Text  string `xml:",chardata"`
30
			Offer struct {
31
				Text        string   `xml:",chardata"`
32
				ID          string   `xml:"id,attr"`
33
				Available   string   `xml:"available,attr"`
34
				URL         string   `xml:"url"`
35
				Price       string   `xml:"price"`
36
				CategoryId  string   `xml:"categoryId"`
37
				Name        string   `xml:"name"`
38
				Vendor      string   `xml:"vendor"`
39
				Description string   `xml:"description"`
40
				Picture     []string `xml:"picture"`
41
				CurrencyId  string   `xml:"currencyId"`
42
				Store       string   `xml:"store"`
43
				Delivery    string   `xml:"delivery"`
44
				Pickup      string   `xml:"pickup"`
45
				VendorCode  string   `xml:"vendorCode"`
46
				Param       []struct {
47
					Text string `xml:",chardata"`
48
					Name string `xml:"name,attr"`
49
				} `xml:"param"`
50
			} `xml:"offer"`
51
		} `xml:"offers"`
52
	} `xml:"shop"`
53
}