Documentation
¶
Overview ¶
Package drafts is the Drafts module: documents (prose, code, plans) the owner and the agent work on together. Every save is a revision, any two revisions can be compared, and either side can pin a mark (a comment, a question, a suggested change) to a passage; the marks are the core's, so they look and work the same as everywhere else in the app.
The agent writes a draft only against the revision it read (expect_rev), so it never silently overwrites the owner's edits.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Draft ¶
type Draft struct {
ID string `json:"id"`
Title string `json:"title"`
// Lang is markdown, text or a programming language.
Lang string `json:"lang"`
Body string `json:"body,omitempty"`
Rev int `json:"rev"`
Created string `json:"created"`
Updated string `json:"updated"`
// Lines is the body's line count, in lists.
Lines int `json:"lines,omitempty"`
}
Draft is one document the owner and the agent work on together.