From 3c9124a3e6c35a2433949fc013ed0eda89390267 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Mon, 12 Oct 2026 14:07:51 +0200 Subject: [PATCH] reorder for better readability --- ad.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ad.go b/ad.go index c32e268..d277839 100644 --- a/ad.go +++ b/ad.go @@ -29,16 +29,8 @@ type Index struct { } type Ad struct { - Title string `goquery:"h1"` - Slug string - ID string - Details string `goquery:".addetailslist--detail,text"` - Attributes map[string]string // processed afterwards - Condition string // post processed from details for backward compatibility - Type string // post processed from details for backward compatibility - Color string // post processed from details for backward compatibility - Material string // post processed from details for backward compatibility - Category string + Title string `goquery:"h1"` + Details string `goquery:".addetailslist--detail,text"` CategoryTree []string `goquery:".breadcrump-link,text"` Price string `goquery:"h2#viewad-price"` Created string `goquery:"#viewad-extra-info,text"` @@ -46,6 +38,14 @@ type Ad struct { Images []string `goquery:".galleryimage-element img,[src]"` Shipping string `goquery:".boxedarticle--details--shipping,text"` // not always filled Expire string + Slug string + ID string + Attributes map[string]string // processed afterwards + Condition string // post processed from details for backward compatibility + Type string // post processed from details for backward compatibility + Color string // post processed from details for backward compatibility + Material string // post processed from details for backward compatibility + Category string // runtime computed Year, Day, Month string