给定是实现 和 接口的结构类型。webdav.Filewebdav.DeadPropsHoldertype vdir struct { comment string // optional short comment for display. // ... other fields}如何正确返回死属性“注释”,以便它显示在 Windows 资源管理器和其他启用了 WebDAV 的文件管理器中?我试过这个,但没有显示评论(评论是#PCDATA):func (d *vdir) DeadProps() (map[xml.Name]webdav.Property, error) { return map[xml.Name]webdav.Property{ {Space: "DAV:", Local: "comment"}: { XMLName: xml.Name{Space: "DAV:", Local: "comment"}, InnerXML: []byte(d.comment), }, }, nil}我做错了什么?
- 1 回答
- 0 关注
- 69 浏览
添加回答
举报
0/150
提交
取消