Documentation ¶ Index ¶ func Create(original, modified interface{}, patchType types.PatchType) ([]byte, error) func Register(patchType types.PatchType, patchFunc PatchFunc) type PatchFunc Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Create ¶ func Create(original, modified interface{}, patchType types.PatchType) ([]byte, error) Create a patch that will convert the original value into the modified value based on the specified patch type. Both values must marshal to JSON and should be of the same type. func Register ¶ func Register(patchType types.PatchType, patchFunc PatchFunc) Types ¶ type PatchFunc ¶ type PatchFunc = func(original, modified interface{}) ([]byte, error) Source Files ¶ View all Source files patch.go Directories ¶ Show internal Expand all Path Synopsis apply json merge strategicmerge Click to show internal directories. Click to hide internal directories.