jsonpatch

package
v0.6.16 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package that defines useful structs for constructing JSON Patch operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation string
const (
	AddOp     Operation = "add"
	RemoveOp  Operation = "remove"
	ReplaceOp Operation = "replace"
	MoveOp    Operation = "move"
	CopyOp    Operation = "copy"
	TestOp    Operation = "test"
)

type PatchString

type PatchString struct {
	Op    Operation `json:"op"`
	Path  string    `json:"path"`
	Value string    `json:"value"`
}

Jump to

Keyboard shortcuts

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