Documentation
¶
Overview ¶
Package delta provides functions to create "deltas" between two sets, which consist of add and remove operations to make a second set contain the same items as the first set.
Within github2omnifocus, this is used to create the operations that bring the task list state in the local tool, Omnifocus, into line with the desired state from GitHub.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keyed ¶
Keyed provides the Key function which is used by the Delta function to identify items uniquely.
type Operation ¶
type Operation struct {
Item Keyed
Type OperationType
}
A Operation states that Item should be added or removed from a set.
type OperationType ¶
type OperationType int
OperationType states whether a DeltaOperation is add or remove.
const ( Add OperationType = iota + 1 Remove )
func (OperationType) String ¶
func (op OperationType) String() string
Click to show internal directories.
Click to hide internal directories.