Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeMap ¶
type AttributeMap map[string]interface{}
AttributeMap is for storing attributes about the text
func (AttributeMap) Compose ¶
func (am AttributeMap) Compose(a, b *AttributeMap, keepNil bool) AttributeMap
Compose two attribute maps into a single AttributeMap
func (AttributeMap) Diff ¶
func (am AttributeMap) Diff(a, b *AttributeMap) AttributeMap
Diff two attribute maps, returning a list of items in b that don't match corresponding values in a (or don't exist in a)
func (AttributeMap) Invert ¶
func (am AttributeMap) Invert(attr, base *AttributeMap) AttributeMap
Invert a AttributeMap against a base AttributeMap
func (AttributeMap) Transform ¶
func (am AttributeMap) Transform(a, b *AttributeMap, priority bool) AttributeMap
Transform two attribute maps against each other
type Iterator ¶
Iterator iterates!
func (*Iterator) PeekLength ¶
PeekLength checks to see how long the current op is
func (*Iterator) PeekType ¶
func (i *Iterator) PeekType() OperationType
PeekType shows you the next operation type
type Op ¶
type Op struct { Insert interface{} Retain int Delete int Attributes AttributeMap }
Op are the currency of the delta format
type OperationType ¶
type OperationType int
OperationType is the type of an operation
const ( // Insert operation Insert OperationType = iota // Delete operation Delete // Retain operation Retain // NOOP operation NOOP )
Click to show internal directories.
Click to hide internal directories.