merge

package
v0.0.0-...-6a94633 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDataJSON    = errors.New("merge: error in data JSON")
	ErrPatchJSON   = errors.New("merge: error in patch JSON")
	ErrMergedJSON  = errors.New("merge: error writing merged JSON")
	ErrPatchObject = errors.New("merge: patch value must be object")
)

Functions

This section is empty.

Types

type Info

type Info struct {
	Errors   []error
	Replaced map[string]any
}

func Merge

func Merge(data, patch any) (any, *Info)

func MergeBytes

func MergeBytes(dataBuff, patchBuff []byte) (mergedBuff []byte, info *Info, err error)

Jump to

Keyboard shortcuts

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