Versions in this module Expand all Collapse all v0 v0.5.1 May 13, 2015 Changes in this version + var ErrConflict = fmt.Errorf("changes are in conflict") + var ErrPreconditionFailed = fmt.Errorf("a precondition failed") + func IsConflicting(err error) bool + func IsPreconditionFailed(err error) bool + type Delta struct + func NewDelta(from, to []byte) (*Delta, error) + func (d *Delta) AddPreconditions(fns ...PreconditionFunc) + func (d *Delta) Apply(latest []byte) ([]byte, error) + type PreconditionFunc func(interface{}) bool + func RequireKeyUnchanged(key string) PreconditionFunc