Returns a new empty document.
(docid string)
| 364 | |
| 365 | // Returns a new empty document. |
| 366 | func NewDocument(docid string) *Document { |
| 367 | return &Document{ID: docid, SyncData: SyncData{History: make(RevTree)}} |
| 368 | } |
| 369 | |
| 370 | // Accessors for document properties. To support lazy unmarshalling of document contents, all access should be done through accessors |
| 371 | func (doc *Document) Body(ctx context.Context) Body { |
no outgoing calls