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