]> Sergey Matveev's repositories - meta4ra.git/blobdiff - scheme.go
Ability to skip Published/Generator fields inclusion
[meta4ra.git] / scheme.go
index e790884ad0b77c5f92a588951cf901b09e46eb75..a1cbec378881d69424bb1cb5592112749db18eef 100644 (file)
--- a/scheme.go
+++ b/scheme.go
@@ -21,21 +21,21 @@ import (
 )
 
 type Metalink struct {
-       XMLName   xml.Name  `xml:"urn:ietf:params:xml:ns:metalink metalink"`
-       Files     []File    `xml:"file"`
-       Generator string    `xml:"generator,,omitempty"`
-       Published time.Time `xml:"published,,omitempty"`
+       XMLName   xml.Name   `xml:"urn:ietf:params:xml:ns:metalink metalink"`
+       Files     []File     `xml:"file"`
+       Generator string     `xml:"generator,,omitempty"`
+       Published *time.Time `xml:"published,,omitempty"`
 }
 
 type File struct {
-       XMLName     xml.Name   `xml:"file"`
-       Name        string     `xml:"name,attr"`
-       Description string     `xml:"description,,omitempty"`
-       Hashes      []Hash     `xml:"hash,,omitempty"`
-       MetaURLs    []MetaURL  `xml:"metaurl,,omitempty"`
+       XMLName     xml.Name    `xml:"file"`
+       Name        string      `xml:"name,attr"`
+       Description string      `xml:"description,,omitempty"`
+       Hashes      []Hash      `xml:"hash,,omitempty"`
+       MetaURLs    []MetaURL   `xml:"metaurl,,omitempty"`
        Signature   []Signature `xml:"signature"`
-       Size        uint64     `xml:"size,,omitempty"`
-       URLs        []URL      `xml:"url,,omitempty"`
+       Size        uint64      `xml:"size,,omitempty"`
+       URLs        []URL       `xml:"url,,omitempty"`
 }
 
 type URL struct {