omitempty for xml properties
This commit is contained in:
@@ -19,11 +19,11 @@ type PropStat struct {
|
||||
}
|
||||
|
||||
type Prop struct {
|
||||
ResourceType ResourceType `xml:"d:resourcetype"`
|
||||
ContentLength int64 `xml:"d:getcontentlength"`
|
||||
CreationDate string `xml:"d:creationdate"`
|
||||
LastModified string `xml:"d:getlastmodified"`
|
||||
ContentType string `xml:"d:getcontenttype"`
|
||||
ResourceType ResourceType `xml:"d:resourcetype,omitempty"`
|
||||
ContentLength int64 `xml:"d:getcontentlength,omitempty"`
|
||||
CreationDate string `xml:"d:creationdate,omitempty"`
|
||||
LastModified string `xml:"d:getlastmodified,omitempty"`
|
||||
ContentType string `xml:"d:getcontenttype,omitempty"`
|
||||
}
|
||||
|
||||
type ResourceType struct {
|
||||
|
||||
Reference in New Issue
Block a user