patch

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package patch provides utilities for creating JSON patches.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMergePatch

func CreateMergePatch(original, modified interface{}) ([]byte, bool, error)

CreateMergePatch creates a JSON merge patch which transforms the `original` to the `modified` object. In addition it returns a boolean flag which is true if the patch to be applied is not empty, and an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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