patch

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 5

Documentation

Index

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL