Versions in this module Expand all Collapse all v1 v1.5.1 Feb 8, 2017 v1.5.0 Oct 23, 2016 Changes in this version + func CreateStrategicMergePatch(original, modified []byte, dataStruct interface{}) ([]byte, error) + func CreateThreeWayMergePatch(original, modified, current []byte, dataStruct interface{}, overwrite bool, ...) ([]byte, error) + func CreateTwoWayMergePatch(original, modified []byte, dataStruct interface{}, fns ...PreconditionFunc) ([]byte, error) + func HasConflicts(left, right interface{}) (bool, error) + func IsConflict(err error) bool + func IsPreconditionFailed(err error) bool + func MergingMapsHaveConflicts(left, right map[string]interface{}, dataStruct interface{}) (bool, error) + func StrategicMergePatch(original, patch []byte, dataStruct interface{}) ([]byte, error) + func StrategicMergePatchData(original, patch []byte, dataStruct interface{}) ([]byte, error) + type PreconditionFunc func(interface{}) bool + func RequireKeyUnchanged(key string) PreconditionFunc + func RequireMetadataKeyUnchanged(key string) PreconditionFunc + type SortableSliceOfMaps struct + func (ss SortableSliceOfMaps) Len() int + func (ss SortableSliceOfMaps) Less(i, j int) bool + func (ss SortableSliceOfMaps) Swap(i, j int) + type SortableSliceOfScalars struct + func (ss SortableSliceOfScalars) Len() int + func (ss SortableSliceOfScalars) Less(i, j int) bool + func (ss SortableSliceOfScalars) Swap(i, j int)