給定是實現 和 接口的結構類型。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 關注
- 68 瀏覽
添加回答
舉報
0/150
提交
取消