The sequence of struct members doesn't matter 
- https://play.golang.org/p/m0wZtHcPRcU

On Tuesday, March 3, 2020 at 5:49:10 AM UTC-7, Kuldeep Avsar wrote:
>
> I wrote a program to extract data from sitemaps's as this format 
>
> type URLSet struct {
> Urls []SitemapURL `xml:"url"`
> }
>
> type SitemapURL struct {
> Location string `xml:"loc"`
> LastModifiedDate string `xml:"lastmod"`
> ChangeFrequency string `xml:"changefreq"`
> Priority string `xml:"priority"`
> }
>
> but some domains have other shape of xml file like this
>
> type URLSet struct {
> Urls []SitemapURL `xml:"url"`
> }
>
> type SitemapURL struct {
> Location string `xml:"loc"`
> ChangeFrequency string `xml:"changefreq"`
> Priority string `xml:"priority"` 
> LastModifiedDate string `xml:"lastmod"`
> }
>
> Any body can help me to handle these both things at same time
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/3088b6f4-8f2d-4183-9e06-73734788a4e6%40googlegroups.com.

Reply via email to